model

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDuplicateBookmark = errors.New("duplicate bookmark line")
	ErrInvalidBookmark   = errors.New("cannot parse bookmark: arguments mismatch")
)

Functions

func WithClient

func WithClient(client *http.Client) func(*Bookmark)

func WithTitle

func WithTitle(title string) func(*Bookmark)

Types

type Bookmark

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

func BookmarkLine

func BookmarkLine(line string) (*Bookmark, error)

func NewBookmark

func NewBookmark(rawURL string, opts ...func(*Bookmark)) (*Bookmark, error)

func (*Bookmark) Description

func (b *Bookmark) Description() string

func (*Bookmark) FilterValue

func (b *Bookmark) FilterValue() string

func (*Bookmark) String

func (b *Bookmark) String() string

func (*Bookmark) Title

func (b *Bookmark) Title() string

func (*Bookmark) Update

func (b *Bookmark) Update(title string)

func (*Bookmark) Write

func (b *Bookmark) Write(rw io.ReadWriteSeeker) error

Jump to

Keyboard shortcuts

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