Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bookmark ¶
type Bookmark struct { ID int64 UserID *int64 `db:"user_id"` Title string URL string Tags []string `db:"-"` TagsText string `db:"tags" json:"-"` // Tags converted to string, for storing into sqlite. Notes string Updated time.Time }
Bookmark datatype
func BookmarkByID ¶
BookmarkByID returns a Bookmark by ID.
func BookmarkByURL ¶
BookmarkByURL returns all bookmark with matching URL, or nil.
func BookmarksAllForUser ¶
BookmarksAllForUser returns all bookmarks owned by a user or not owned by anone (user is NULL).
func NewBookmark ¶
NewBookmark creates a new bookmark with ID -1.
func (*Bookmark) CleanTags ¶
func (bm *Bookmark) CleanTags()
CleanTags cleans up the tags to a list separated by commas.
Click to show internal directories.
Click to hide internal directories.