markdown

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNote

func NewNote(personID, kind, source, body string, occurredAt, now time.Time, topics []string) model.Note

func NewPerson

func NewPerson(name string, now time.Time) model.Person

func NoteFileName

func NoteFileName(n model.Note) string

func RepairPerson

func RepairPerson(path, repairRoot string, p model.Person, report RepairReport, backup bool) error

func WriteNote

func WriteNote(path string, n model.Note) error

func WritePerson

func WritePerson(path string, p model.Person) error

Types

type RepairReport

type RepairReport struct {
	Path              string   `json:"path"`
	Needed            bool     `json:"needed"`
	Problems          []string `json:"problems,omitempty"`
	RecoveredMetadata string   `json:"recovered_metadata,omitempty"`
}

func ReadNote

func ReadNote(path string) (model.Note, RepairReport, error)

func ReadPerson

func ReadPerson(path string) (model.Person, RepairReport, error)

Jump to

Keyboard shortcuts

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