Versions in this module Expand all Collapse all v4 v4.0.0 Jun 15, 2026 Changes in this version + var ErrDuplicateAgentSection = errors.New("more than one Agent section exists") + var ErrDuplicatePrivateSection = errors.New("more than one Private section exists") + var ErrDuplicatePublicSection = errors.New("more than one Public section exists") + var ErrDuplicateSubsection = errors.New("two level-2 headings within the same section normalize to the same text") + var ErrFileUnreadable = errors.New("file cannot be opened or read") + var ErrHasQualifier = errors.New("logical name contains a parenthetical qualifier") + var ErrNodeNameDoesNotMatch = errors.New("first heading does not match the logical name after normalization") + var ErrNotASpecReference = errors.New("logical name is not a SPEC/ reference") + var ErrUnexpectedContentBeforeFirstHeading = errors.New(...) + var ErrUnrecognizedSection = errors.New("unrecognized level-1 heading") + type Node struct + Agent *NodeSection + NameSection *NodeSection + Private *NodeSection + Public *NodeSection + func NodeParse(logicalName string) (*Node, error) + type NodeSection struct + Content []string + Heading string + RawHeading string + Subsections []*NodeSubsection + type NodeSubsection struct + Content []string + Heading string + RawHeading string