Documentation ¶
Index ¶
- Constants
- type AllTags
- type Bookmark
- func (bm *Bookmark) DescriptionMatches(query string) bool
- func (bm *Bookmark) FormatAsInteractiveFileString() string
- func (bm Bookmark) HasName() bool
- func (bm *Bookmark) MarkUpdated()
- func (bm *Bookmark) NameMatches(query string) bool
- func (bm *Bookmark) UpdateFromInteractiveFileString(data string) error
- func (bm *Bookmark) UrlMatches(query string) bool
- type BookmarkLibrary
- func (bmks *BookmarkLibrary) DeleteByNumber(number int) error
- func (bmks *BookmarkLibrary) GetAllTags() AllTags
- func (bmks *BookmarkLibrary) GetByNumber(number int) (*Bookmark, error)
- func (bmks *BookmarkLibrary) Len() int
- func (bmks *BookmarkLibrary) Less(i, j int) bool
- func (bmks *BookmarkLibrary) NewEntry() *Bookmark
- func (bmks *BookmarkLibrary) Swap(i, j int)
- func (bmks *BookmarkLibrary) Verify() error
- type TagCount
- type TagList
- func (tl *TagList) Append(tag string)
- func (tl *TagList) AppendFromString(tagStr string)
- func (tl *TagList) Clear()
- func (tl *TagList) ContainsAllTags(tags []string) bool
- func (tl *TagList) Len() int
- func (tl *TagList) Less(i, j int) bool
- func (tl TagList) MarshalJSON() ([]byte, error)
- func (tl TagList) MultilineString() string
- func (tl *TagList) Remove(tag string)
- func (tl TagList) String() string
- func (tl *TagList) Swap(i, j int)
- func (tl *TagList) UnmarshalJSON(b []byte) error
- type Url
Constants ¶
View Source
const ( BookmarkInteractiveFileNameHeader = "## Title" BookmarkInteractiveFileUrlHeader = "## URL" BookmarkInteractiveFileDescriptionHeader = "## Description" BookmarkInteractiveFileTagsHeader = "## Tags" )
View Source
const BookmarkInteractiveFileFormatString = `` /* 160-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bookmark ¶
type Bookmark struct { Number int `json:"index"` Url Url `json:"uri"` Name string `json:"title"` Description string `json:"description"` Tags TagList `json:"tags"` WhenAdded time.Time `json:"whenAdded"` LastUpdated time.Time `json:"lastUpdated"` }
func (*Bookmark) DescriptionMatches ¶
func (*Bookmark) FormatAsInteractiveFileString ¶
func (*Bookmark) MarkUpdated ¶
func (bm *Bookmark) MarkUpdated()
func (*Bookmark) NameMatches ¶
func (*Bookmark) UpdateFromInteractiveFileString ¶
func (*Bookmark) UrlMatches ¶
type BookmarkLibrary ¶
type BookmarkLibrary struct {
Bookmarks []Bookmark
}
func (*BookmarkLibrary) DeleteByNumber ¶
func (bmks *BookmarkLibrary) DeleteByNumber(number int) error
func (*BookmarkLibrary) GetAllTags ¶
func (bmks *BookmarkLibrary) GetAllTags() AllTags
func (*BookmarkLibrary) GetByNumber ¶
func (bmks *BookmarkLibrary) GetByNumber(number int) (*Bookmark, error)
func (*BookmarkLibrary) Len ¶
func (bmks *BookmarkLibrary) Len() int
func (*BookmarkLibrary) Less ¶
func (bmks *BookmarkLibrary) Less(i, j int) bool
func (*BookmarkLibrary) NewEntry ¶
func (bmks *BookmarkLibrary) NewEntry() *Bookmark
func (*BookmarkLibrary) Swap ¶
func (bmks *BookmarkLibrary) Swap(i, j int)
func (*BookmarkLibrary) Verify ¶
func (bmks *BookmarkLibrary) Verify() error
type TagList ¶
type TagList struct {
Tags []string
}
func (*TagList) AppendFromString ¶
func (*TagList) ContainsAllTags ¶
func (TagList) MarshalJSON ¶
func (TagList) MultilineString ¶
func (*TagList) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.