README

go-biblestats

Build Status Codecov Go Report Card Go docs

Go package for getting Bible stats. Current stats supported:

  • Books of the Bible.
  • Count of chapters per book.
  • Count of verses per chapter.

Documentation

Overview

    Package biblestats contains stats about the books of the Bible. It includes:

    - A list of the books of the Bible.
    - Count of chapters in each book.
    - Count of verses in each chapter.
    

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    func ChapterCount

    func ChapterCount(b Book) int

      ChapterCount returns the number of chapters in the book. Returns 0 if the book is unknown.

      func VerseCount

      func VerseCount(b Book, chapter int) int

        VerseCount returns the number of verses in the book and chapter. Returns 0 if the book or chapter is unknown.

        Types

        type Book

        type Book string

          Book is a book of the Bible.

          var (
          	BookGenesis        Book = "Genesis"
          	BookExodus         Book = "Exodus"
          	BookLeviticus      Book = "Leviticus"
          	BookNumbers        Book = "Numbers"
          	BookDeuteronomy    Book = "Deuteronomy"
          	BookJoshua         Book = "Joshua"
          	BookJudges         Book = "Judges"
          	BookRuth           Book = "Ruth"
          	Book1Samuel        Book = "1 Samuel"
          	Book2Samuel        Book = "2 Samuel"
          	Book1Kings         Book = "1 Kings"
          	Book2Kings         Book = "2 Kings"
          	Book1Chronicles    Book = "1 Chronicles"
          	Book2Chronicles    Book = "2 Chronicles"
          	BookEzra           Book = "Ezra"
          	BookNehemiah       Book = "Nehemiah"
          	BookEsther         Book = "Esther"
          	BookJob            Book = "Job"
          	BookPsalms         Book = "Psalms"
          	BookProverbs       Book = "Proverbs"
          	BookEcclesiastes   Book = "Ecclesiastes"
          	BookSongofSolomon  Book = "Song of Solomon"
          	BookIsaiah         Book = "Isaiah"
          	BookJeremiah       Book = "Jeremiah"
          	BookLamentations   Book = "Lamentations"
          	BookEzekiel        Book = "Ezekiel"
          	BookDaniel         Book = "Daniel"
          	BookHosea          Book = "Hosea"
          	BookJoel           Book = "Joel"
          	BookAmos           Book = "Amos"
          	BookObadiah        Book = "Obadiah"
          	BookJonah          Book = "Jonah"
          	BookMicah          Book = "Micah"
          	BookNahum          Book = "Nahum"
          	BookHabakkuk       Book = "Habakkuk"
          	BookZephaniah      Book = "Zephaniah"
          	BookHaggai         Book = "Haggai"
          	BookZechariah      Book = "Zechariah"
          	BookMalachi        Book = "Malachi"
          	BookMatthew        Book = "Matthew"
          	BookMark           Book = "Mark"
          	BookLuke           Book = "Luke"
          	BookJohn           Book = "John"
          	BookActs           Book = "Acts"
          	BookRomans         Book = "Romans"
          	Book1Corinthians   Book = "1 Corinthians"
          	Book2Corinthians   Book = "2 Corinthians"
          	BookGalatians      Book = "Galatians"
          	BookEphesians      Book = "Ephesians"
          	BookPhilippians    Book = "Philippians"
          	BookColossians     Book = "Colossians"
          	Book1Thessalonians Book = "1 Thessalonians"
          	Book2Thessalonians Book = "2 Thessalonians"
          	Book1Timothy       Book = "1 Timothy"
          	Book2Timothy       Book = "2 Timothy"
          	BookTitus          Book = "Titus"
          	BookPhilemon       Book = "Philemon"
          	BookHebrews        Book = "Hebrews"
          	BookJames          Book = "James"
          	Book1Peter         Book = "1 Peter"
          	Book2Peter         Book = "2 Peter"
          	Book1John          Book = "1 John"
          	Book2John          Book = "2 John"
          	Book3John          Book = "3 John"
          	BookJude           Book = "Jude"
          	BookRevelation     Book = "Revelation"
          )

          func Books

          func Books() []Book

            Books returns a slice of books in the bible.

            func (Book) Abbr

            func (b Book) Abbr() string

            Directories

            Path Synopsis
            generate