text

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMultiVerse = errors.New("multiple verses not supported")
)

Functions

This section is empty.

Types

type Resolver

type Resolver interface {
	Verse(ref *ref.Resolved) (string, error)
	VerseHTML(ref *ref.Resolved) (template.HTML, error)
}

type Service

type Service struct {
	Resolver
}

func NewService

func NewService(r Resolver) *Service

func (*Service) RandomVerse

func (c *Service) RandomVerse(opt ...ref.RandomReferenceOption) (*ref.Resolved, string, error)

func (*Service) RandomVerseHTML

func (c *Service) RandomVerseHTML(opt ...ref.RandomReferenceOption) (*ref.Resolved, template.HTML, error)

func (*Service) Verse

func (c *Service) Verse(vr string) (string, error)

func (*Service) VerseHTML

func (c *Service) VerseHTML(vr string) (template.HTML, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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