notes

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: Apache-2.0 Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package notes holds the lead's notes: how to lead wishes with Djinn, learnt from past wishes, whatever the agent that leads. One note per Markdown file of this folder, built into djinn and read only at run time: a contributor changes them by pull request, like any doc (lead/README.md). The brief gives every lead the index; djinn lead notes <name> prints one note.

Index

Constants

This section is empty.

Variables

View Source
var Notes = sync.OnceValues(func() ([]Note, error) { return read(files) })

Notes are the lead's notes, by name. An error names the file that does not read: a test reads them all.

View Source
var Types = []string{"feedback", "project", "reference"}

Types are the kinds a note may be.

Functions

func Index

func Index() (string, error)

Index is a line per note, its name and description, never its text: what a lead reads to know which note to open.

Types

type Note

type Note struct {
	// Name is its file's name without .md: how the index and djinn lead notes name it.
	Name string `yaml:"name"`
	// Description says in a line what it is about, for a lead to tell whether to open it.
	Description string `yaml:"description"`
	// Type is feedback (how the developer wants to be led), project (a fact of the work) or reference (where to look).
	Type string `yaml:"type"`
	// Body is the text after the front matter.
	Body string `yaml:"-"`
}

Note is a note of the lead: its front matter, then its text.

func Find

func Find(name string) (Note, bool)

Find is the note named name, case ignored.

func (Note) Text

func (n Note) Text() string

Text is the note as djinn lead notes prints it: its name and description as a title, then its text.

Jump to

Keyboard shortcuts

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