persona

package
v0.0.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create added in v0.0.5

func Create(name string) (string, error)

Create creates a new persona file with a template and returns the file path

func Delete added in v0.0.5

func Delete(name string) error

Delete removes a persona file

func Dir

func Dir() (string, error)

Dir returns the personas directory path

func List

func List() ([]string, error)

List returns all available persona names

func ListExamples added in v0.0.5

func ListExamples() ([]string, error)

ListExamples returns the names of all bundled example personas

func Save

func Save(p *Persona) error

Save writes a persona to disk as markdown with frontmatter

Types

type Persona

type Persona struct {
	Name        string `yaml:"name"`
	Description string
}

Persona defines a character voice for journal entries

func Get

func Get(name string) (*Persona, error)

Get retrieves a persona by name

func GetExample added in v0.0.5

func GetExample(name string) (*Persona, error)

GetExample loads a bundled example persona by name

func Load

func Load(path string) (*Persona, error)

Load reads a persona from a markdown file with frontmatter

func LoadByName

func LoadByName(name string) (*Persona, error)

LoadByName looks for a persona file in the personas directory

Jump to

Keyboard shortcuts

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