ost

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBaseURL = `https://openscripture.today`

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Client       *http.Client
	TextService  *text.Service
	PhotoService *photo.Service
	BaseURL      string
}

func New

func New(ctx context.Context) (*Client, error)

func (*Client) Today

func (c *Client) Today(ctx context.Context, opts ...Option) (string, error)

func (*Client) TodayHTML

func (c *Client) TodayHTML(ctx context.Context, opts ...Option) (template.HTML, error)

func (*Client) TodayPhoto added in v0.3.0

func (c *Client) TodayPhoto(ctx context.Context, opts ...Option) (*photo.Info, error)

func (*Client) TodayVerse

func (c *Client) TodayVerse(ctx context.Context, opts ...Option) (*text.Verse, error)

type Option added in v0.2.0

type Option func(*options)

func On added in v0.2.0

func On(t time.Time) Option

Jump to

Keyboard shortcuts

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