Documentation
¶
Index ¶
- Constants
- func GetYaml(str string) string
- func IncludeNote(filters map[string]string, note Node, logger *log.Logger) bool
- func MDToHTML(input []byte) (string, error)
- func NewCollector(root, ext string) *collector
- func NewNoteService(logger *log.Logger, repo NodeRepository) *noteService
- func NewSearcher(nodes []FileNode) *searcher
- func NewTemplateParser(pathTmp, templateName string) *parser
- func NewTimeId() string
- func ParseNodeToHTML(node FileNode, templateFile string) ([]byte, error)
- type FileNode
- type Filter
- type INode
- type Meta
- type Metadata
- type Node
- type NodeRepository
- type NodeType
- type NoteService
- type Searcher
Constants ¶
View Source
const ( // YYYY-MM-DD: 2022-03-23 YYYYMMDD = "2006-01-02" // 24h hh:mm:ss: 14:23:20 HHMMSS24h = "15:04:05" )
Variables ¶
This section is empty.
Functions ¶
func NewCollector ¶
func NewCollector(root, ext string) *collector
func NewNoteService ¶
func NewNoteService(logger *log.Logger, repo NodeRepository) *noteService
func NewSearcher ¶
func NewSearcher(nodes []FileNode) *searcher
func NewTemplateParser ¶
func NewTemplateParser(pathTmp, templateName string) *parser
Types ¶
type FileNode ¶
type Metadata ¶
func ExtractMetadata ¶
func (*Metadata) IncludeTags ¶
Include tags check that all tags are included in the metadata
type Node ¶
type NodeRepository ¶
func NewSqliteNodeRepo ¶
func NewSqliteNodeRepo(path string) NodeRepository
type NoteService ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.