parser

package
v0.0.0-...-e009928 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GlossaryItem

type GlossaryItem struct {
	ID       string
	KeyText  string
	KeyParts []string
	Body     string
}

type Rules

type Rules struct {
	EffectiveDate time.Time
	Rules         []Section
	Glossary      []GlossaryItem
	Credits       []string
}

func Parse

func Parse(r io.Reader) (Rules, error)

type Section

type Section struct {
	ID       string
	Number   string
	Type     SectionType
	Body     []string
	Examples []string `json:",omitempty"`
}

type SectionType

type SectionType string
const (
	Part    SectionType = "Part"
	Chapter SectionType = "Chapter"
	Rule    SectionType = "Rule"
	SubRule SectionType = "SubRule"
)

Jump to

Keyboard shortcuts

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