Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultEditor = "vim"
)
View Source
const (
IdToRemove = "removed"
)
Variables ¶
This section is empty.
Functions ¶
func CreateNote ¶
func CreateNote()
Types ¶
type Book ¶
Book may contains multiple notes. Each book has its own directory. Notes may be duplicated to different locations. ByProject, ByTags, ByMonth
func (*Book) RemoveNote ¶
func (*Book) UpdateBook ¶
func (b *Book) UpdateBook()
func (*Book) UpdateTags ¶
type Market ¶
Market is the manager of the whole notes system. A market may contains multiple books, and each book may contains multiple notes. Market is also responsible to serialize all notes to files and load them.
func GetNotesMarket ¶
func GetNotesMarket() *Market
func (*Market) GetOrCreateBook ¶
func (*Market) GetOrCreatePageBook ¶
type Note ¶
type Note struct { Id string Title string Content string Project string Tags []string CreationTime string // RFC3339 format of creation time, used as unique key Archived bool }
Note is the basic unit of the notes system.
type NoteFile ¶
type NoteFile struct {
// contains filtered or unexported fields
}
NoteFile keep several notes in one markdown file
func NewNoteFile ¶
type NoteSet ¶
type NoteSet struct {
// contains filtered or unexported fields
}
func NewNoteSet ¶
func NewNoteSet() NoteSet
func (*NoteSet) HasNoteById ¶
func (*NoteSet) ToOrderedList ¶
Click to show internal directories.
Click to hide internal directories.