biblepassageapi

package module
v0.0.0-...-b6c0dd8 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2018 License: MIT Imports: 10 Imported by: 0

README

go-biblepassageapi

Go Report Card Go docs

Go package for getting Bible passages from several Bible APIs.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CEV  = "CEV"
	GNT  = "GNT"
	NASB = "NASB"
	AMP  = "AMP"
	MSG  = "MSG"
)

Functions

This section is empty.

Types

type Bible

type Bible interface {
	Source() string
	NameShort() string
	NameCommon() string
	Name() string
	GetPassage(reference string) (*Passage, error)
}

func Cache

func Cache(b Bible, cacheFolderPath string) Bible

type BibleBiblesOrg

type BibleBiblesOrg struct {
	// contains filtered or unexported fields
}

func NewBiblesOrg

func NewBiblesOrg(apiKey, translation string) BibleBiblesOrg

func (BibleBiblesOrg) GetPassage

func (b BibleBiblesOrg) GetPassage(reference string) (*Passage, error)

func (BibleBiblesOrg) Name

func (b BibleBiblesOrg) Name() string

func (BibleBiblesOrg) NameCommon

func (b BibleBiblesOrg) NameCommon() string

func (BibleBiblesOrg) NameShort

func (b BibleBiblesOrg) NameShort() string

func (BibleBiblesOrg) Source

func (b BibleBiblesOrg) Source() string

type BibleESVAPI

type BibleESVAPI struct {
	// contains filtered or unexported fields
}

func NewESVAPI

func NewESVAPI(apiKey string) BibleESVAPI

func (BibleESVAPI) GetPassage

func (b BibleESVAPI) GetPassage(reference string) (*Passage, error)

func (BibleESVAPI) Name

func (b BibleESVAPI) Name() string

func (BibleESVAPI) NameCommon

func (b BibleESVAPI) NameCommon() string

func (BibleESVAPI) NameShort

func (b BibleESVAPI) NameShort() string

func (BibleESVAPI) Source

func (b BibleESVAPI) Source() string

type BibleNET

type BibleNET struct{}

func NewBibleNET

func NewBibleNET() BibleNET

func (BibleNET) GetPassage

func (b BibleNET) GetPassage(reference string) (*Passage, error)

func (BibleNET) Name

func (b BibleNET) Name() string

func (BibleNET) NameCommon

func (b BibleNET) NameCommon() string

func (BibleNET) NameShort

func (b BibleNET) NameShort() string

func (BibleNET) Source

func (b BibleNET) Source() string

type Passage

type Passage struct {
	Html         string
	TrackingCode string
	Copyright    string
}

func (*Passage) TimeToReadInMinutes

func (p *Passage) TimeToReadInMinutes() int

Jump to

Keyboard shortcuts

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