Versions in this module Expand all Collapse all v0 v0.1.0 Sep 20, 2026 Changes in this version + var ErrLimit = errors.New("resource limit exceeded") + var ErrOptions = errors.New("invalid parse options") + var ErrSyntax = errors.New("invalid YAML") + var ErrType = errors.New("invalid value type") + var ErrUnsupported = errors.New("unsupported YAML") + type Actor struct + func (a Actor) FamilyNames() string + func (a Actor) Get(name string) Value + func (a Actor) GivenNames() string + func (a Actor) IsEntity() bool + func (a Actor) Name() string + type Diagnostic struct + Code string + Message string + Path string + type Document struct + func Parse(data []byte) (*Document, error) + func ParseWithOptions(data []byte, opts ParseOptions) (*Document, error) + func Read(r io.Reader, opts ParseOptions) (*Document, error) + func ReadFile(path string, opts ParseOptions) (*Document, error) + func (d *Document) Authors() []Actor + func (d *Document) CFFVersion() string + func (d *Document) Contact() []Actor + func (d *Document) Fields() []Field + func (d *Document) Get(name string) Value + func (d *Document) PreferredCitation() (Reference, bool) + func (d *Document) References() []Reference + func (d *Document) Title() string + func (d *Document) Validate() []Diagnostic + func (d *Document) Version() Value + type Error struct + Cause error + func (e *Error) Error() string + func (e *Error) Unwrap() error + type Field struct + Name string + Position Position + Value Value + type Kind uint8 + const Boolean + const Mapping + const Missing + const Null + const Number + const Sequence + const String + type ParseOptions struct + MaxBytes int64 + MaxDepth int + MaxDiagnostics int + MaxNodes int + MaxNumberBytes int + MaxScalarBytes int + type Position struct + Column int + Line int + type Reference struct + func (r Reference) Authors() []Actor + func (r Reference) Get(name string) Value + func (r Reference) Title() string + func (r Reference) Type() string + type Value struct + func (v Value) Fields() []Field + func (v Value) Get(name string) Value + func (v Value) Items() []Value + func (v Value) Kind() Kind + func (v Value) Position() Position + func (v Value) Text() string