Versions in this module Expand all Collapse all v0 v0.14.0 Nov 17, 2026 Changes in this version + var ErrBadName = errors.New(...) + var ErrBadScope = errors.New(`scope must be "project" or "local"`) + var ErrIsSymlink = pathjail.ErrReparse + var ErrNameClash = errors.New("a differently spelled note already occupies this name") + var ErrNoStore = errors.New("memory is not available in this run") + var ErrNotFound = errors.New("no such memory") + var ErrNotPrivate = errors.New("a note saved to the local memory store would not stay on this machine") + var ErrTooLarge = fmt.Errorf("a memory note may be at most %d bytes", maxNoteBytes) + var ErrUnreadable = errors.New("the memory store exists but could not be read") + func Forget(paths Paths, scope Scope, name string) error + func ValidName(name string) bool + func Write(paths Paths, scope Scope, name, description, body string) (string, error) + type Note struct + Body string + Description string + Name string + Scope Scope + func List(paths Paths, scopes ...Scope) ([]Note, error) + func Read(paths Paths, scope Scope, name string) (Note, error) + type Paths struct + LocalDir string + ProjectDir string + Root string + func DefaultPaths(workspaceRoot string) Paths + func (paths Paths) Available() bool + type Scope string + const ScopeLocal + const ScopeProject + func DefaultScopeOrder() []Scope + func ResolveScopes(requested string) ([]Scope, error)