Documentation
¶
Index ¶
- Variables
- func GetNoteContents(entry *IndexEntry) ([]byte, error)
- func GetNotesRoot() string
- func NewNote(title string, index []*IndexEntry) (*IndexEntry, []*IndexEntry)
- func SaveIndex(entries []*IndexEntry) error
- func SetNoteContents(content []byte, entry *IndexEntry) error
- type FieldSchema
- type IndexEntry
- type ParserSchema
Constants ¶
This section is empty.
Variables ¶
View Source
var ( INDEX_ID_PATTERN = regexp.MustCompile(`^id:\s*(.*)`) INDEX_TITLE_PATTERN = regexp.MustCompile(`^title:\s*(.*)`) INDEX_PATH_PATTERN = regexp.MustCompile(`^path:\s*(.*)`) INDEX_CREATEDON_PATTERN = regexp.MustCompile(`^created_on:\s*(.*)`) )
Functions ¶
func GetNoteContents ¶
func GetNoteContents(entry *IndexEntry) ([]byte, error)
func GetNotesRoot ¶
func GetNotesRoot() string
func NewNote ¶
func NewNote(title string, index []*IndexEntry) (*IndexEntry, []*IndexEntry)
func SaveIndex ¶
func SaveIndex(entries []*IndexEntry) error
func SetNoteContents ¶
func SetNoteContents(content []byte, entry *IndexEntry) error
Types ¶
type FieldSchema ¶
type IndexEntry ¶
func DeleteNote ¶
func DeleteNote(id string, index []*IndexEntry) ([]*IndexEntry, error)
func ImportNote ¶
func ImportNote(srcPath string) (*IndexEntry, error)
func LoadIndex ¶
func LoadIndex() ([]*IndexEntry, error)
func LookupNote ¶
func LookupNote(id string, index []*IndexEntry) *IndexEntry
type ParserSchema ¶
type ParserSchema struct {
Fields []*FieldSchema
FieldFormat string
}
Click to show internal directories.
Click to hide internal directories.