parse

package
v0.0.0-...-f83f850 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2015 License: MIT Imports: 5 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComprehensiveRules

type ComprehensiveRules map[Title]*Rule

func ParseCR

func ParseCR(r io.Reader) ComprehensiveRules

type Rule

type Rule struct {
	Title
	Body     string   `json:",omitempty"`
	Notes    []string `json:",omitempty"`
	Examples []string `json:",omitempty"`
	Parent   *Rule    `json:"-"`
	Children []*Rule  `json:",omitempty"`
}

func NewRule

func NewRule(title string) *Rule

func (*Rule) CompleteText

func (r *Rule) CompleteText() string

func (*Rule) Text

func (r *Rule) Text() string

type Title

type Title string

func (Title) Depth

func (t Title) Depth() int

func (Title) Name

func (t Title) Name() string

func (Title) ParentTitle

func (t Title) ParentTitle() Title

Jump to

Keyboard shortcuts

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