options

package
v0.6.19 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

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

Options holds settings for link generation.

func New

func New(s makelink.Style, hist *history.HistoryFile, userAgent string) *Options

New returns a new Options instance.

func (*Options) History

func (c *Options) History() *history.HistoryFile

History returns the history store.

func (c *Options) MakeLink(ctx context.Context, urlStr string) (io.Reader, error)

MakeLink creates an encoded link from the given URL.

Jump to

Keyboard shortcuts

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