namefetcher

package
v0.0.0-...-7ef2900 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2021 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchBookNames

func FetchBookNames(apiBibleKey string, isDryRun bool, isTest bool) error

FetchBookNames goes through all of BibleGateway and API.Bible, scraping book names from each translation.

func GetBookNames

func GetBookNames(isTest bool) map[string][]string

GetBookNames returns map[string][]string of saved book names.

func GetDefaultBookNames

func GetDefaultBookNames(isTest bool) []string

GetDefaultBookNames returns []string of default book names.

Types

type ABBibleResponse

type ABBibleResponse struct {
	Data []abBibleData `json:"data"`
}

ABBibleResponse is a struct corresponding to the response from /v1/bibles.

type ABBookResponse

type ABBookResponse struct {
	Data []abBookData `json:"data"`
}

ABBookResponse is a struct corresponding to the response from /v1/bibles/{bibleId}/books.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL