Documentation
¶
Index ¶
Constants ¶
View Source
const TreeIndent = " "
Variables ¶
View Source
var DefaulMetadata = []string{
"Title",
}
DefaultMetadata fields This is appended with configuration values
Functions ¶
This section is empty.
Types ¶
type Bookmark ¶
type Bookmark struct { Id int Name string LowerName string Description string Content string Project string CreatedAt time.Time `db:"created_at"` UpdatedAt time.Time `db:"updated_at"` Archived bool Tags []string //Metadata key-values. Not in order Metadata *map[string]string //MetadataKeys provides ordered collection of keys MetadataKeys *[]string }
func (*Bookmark) AddMetadata ¶
AddMetadata adds single key-value metadata to bookmark If key already exists, override it with new value
func (*Bookmark) AddTag ¶
AddTag adds tag to bookmark. No duplicates are removed
func (*Bookmark) AddTags ¶
AddTags adds multiple tags to bookmark. No duplicates are removed
func (*Bookmark) ContentDomain ¶
Return domain of the content if it is a link
type Project ¶
func ParseTrees ¶
ParseTrees parses array if strings and array of counts into tree of projects Data: e.g. ["project.a", "project.b", "project.a.b.c"] Count: e.g. [10,10,10]
func (*Project) String ¶
String returns string presentation of project. Only print project and its parents: c.string -> a.b.c, a.string -> a
Click to show internal directories.
Click to hide internal directories.