note

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Note

type Note struct {
	ID       string    `yaml:"-"`
	Title    string    `yaml:"title"`
	Created  time.Time `yaml:"created"`
	Modified time.Time `yaml:"modified"`
	Tags     []string  `yaml:"tags"`
	Content  string    `yaml:"-"`
}

func NewNote

func NewNote(title string, tags []string) *Note

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

func NewStorage

func NewStorage(notesDir string) (*Storage, error)

func (*Storage) Delete

func (s *Storage) Delete(filename string) error

func (*Storage) Find

func (s *Storage) Find(query string) (*Note, error)

func (*Storage) GetPath

func (s *Storage) GetPath(filename string) string

func (*Storage) List

func (s *Storage) List(tagFilter string) ([]*Note, error)

func (*Storage) Load

func (s *Storage) Load(filename string) (*Note, error)

func (*Storage) Save

func (s *Storage) Save(note *Note) error

func (*Storage) SaveAt

func (s *Storage) SaveAt(note *Note, path string) error

Jump to

Keyboard shortcuts

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