Versions in this module Expand all Collapse all v0 v0.1.0 Oct 12, 2026 Changes in this version + var ErrLimit = errors.New("resource limit exceeded") + var ErrOptions = errors.New("invalid parse options") + var ErrUnsupported = errors.New("unsupported input") + func PlainText(s string) string + type Diagnostic struct + Code string + Message string + type Entry struct + End int + Fields []Field + Key string + Start int + Type string + func (e *Entry) Authors() []Name + func (e *Entry) Editors() []Name + func (e *Entry) Get(name string) string + func (e *Entry) Lookup(name string) (string, bool) + func (e *Entry) Text(name string) string + type Error struct + Cause error + func (e *Error) Error() string + func (e *Error) Unwrap() error + type Field struct + Name string + Value string + type File struct + Diagnostics []Diagnostic + Encoding string + Entries []Entry + Preambles []string + Strings []Field + func Extract(data []byte, opts ParseOptions) (*File, error) + func Parse(data []byte) (*File, error) + func ParseWithOptions(data []byte, opts ParseOptions) (*File, error) + func Read(r io.Reader, opts ParseOptions) (*File, error) + func ReadFile(path string, opts ParseOptions) (*File, error) + type Name struct + First string + Jr string + Last string + Literal bool + Others bool + Von string + func ParseNames(s string) []Name + func (n Name) String() string + type ParseOptions struct + MaxBytes int64 + MaxDiagnostics int + MaxEntries int + MaxExpandedBytes int + MaxValueBytes int + type Position struct + Column int + Line int