decision

package
v0.0.0-...-ae6bf09 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeTechnical = "technical"
	TypeProduct   = "product"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Decision

type Decision struct {
	Type        string    `yaml:"type" json:"type"`
	Date        time.Time `yaml:"-" json:"date"`
	DateStr     string    `yaml:"date" json:"date_str"`
	Author      string    `yaml:"author" json:"author"`
	Anchor      string    `yaml:"anchor" json:"anchor"`
	LinearIssue string    `yaml:"linear_issue" json:"linear_issue"`
	Stale       bool      `yaml:"stale" json:"stale"`
	Title       string    `yaml:"-" json:"title"`
	Body        string    `yaml:"-" json:"body"`
	FilePath    string    `yaml:"-" json:"file_path"`
}

func ParseAllFromDir

func ParseAllFromDir(dir string) ([]*Decision, error)

func ParseFromFile

func ParseFromFile(path string) (*Decision, error)

func (*Decision) Filename

func (d *Decision) Filename() string

func (*Decision) WriteToFile

func (d *Decision) WriteToFile(path string) error

Jump to

Keyboard shortcuts

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