note

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractLinks(content string) []string

ExtractLinks はコンテンツから [[...]] リンクをすべて抽出する

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 FindBacklinks(storage *Storage, targetTitle string) ([]*Note, error)

FindBacklinks はtargetTitleを参照しているノートを検索する

func NewNote

func NewNote(title string, tags []string) *Note
func ResolveLinks(storage *Storage, links []string) (found []*Note, notFound []string)

ResolveLinks はリンク名からノートを検索し、見つかったものと見つからなかったものを返す

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