Documentation ¶
Index ¶
- Constants
- type Auth
- type Resolver
- func (r *Resolver) Verse(ctx context.Context, ref *ref.Resolved) (*text.Verse, error)
- func (r *Resolver) VerseHTML(ctx context.Context, ref *ref.Resolved) (template.HTML, error)
- func (r *Resolver) VerseText(ctx context.Context, ref *ref.Resolved) (string, error)
- func (r *Resolver) VersionInformation(context.Context) (*text.Version, error)
Constants ¶
View Source
const AuthFile = ".esv.yaml"
AuthFile is the location where the local project should stash the ESV access key file.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct { // AccessKey is the ESV API access key. AccessKey string `yaml:"access_key"` }
Auth is the structure of the ESV access key file.
type Resolver ¶
func NewFromAuthFile ¶
func NewFromEnvironment ¶
func (*Resolver) VerseHTML ¶
VerseHTML returns the HTML of the given verse reference using the ESV API.
Click to show internal directories.
Click to hide internal directories.