note

package
v0.0.0-...-96c5686 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KIND_NOTE         = Kind("note")
	KIND_PRIVATE_NOTE = Kind("private_note")
	KIND_WORK_NOTE    = Kind("work_note")
	KIND_INVALID      = Kind("")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Kind

type Kind string

type Note

type Note struct {
	Title   string
	Kind    Kind
	Tags    []Tag
	Content string
	// contains filtered or unexported fields
}

func NewNote

func NewNote(doc *adoc.ADoc) *Note

func (*Note) Contains

func (n *Note) Contains(term string) bool

type Notes

type Notes []*Note

func (*Notes) AddFileNote

func (n *Notes) AddFileNote(fPath string) error

func (*Notes) FilterByTerm

func (n *Notes) FilterByTerm(term string) Notes

type Tag

type Tag string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL