bookmark

package
v0.0.0-...-af80692 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bookmark

type Bookmark struct {
	URL  string `json:"url"`
	Name string `json:"name"`
}

type Store

type Store struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func Load

func Load(path string) (*Store, error)

func (*Store) Add

func (bs *Store) Add(surl, name string) error

func (*Store) All

func (bs *Store) All() []Bookmark

func (*Store) Contains

func (bs *Store) Contains(surl string) bool

func (*Store) Remove

func (bs *Store) Remove(surl string) error

Jump to

Keyboard shortcuts

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