Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entity ¶
type Entity interface { Kind() EntityKind Section() *Section Group() *Group Meta() *frontmatter.Meta CompoundID() string ParentEntity() Entity }
type EntityKind ¶
type EntityKind int
const ( EntityKindSection EntityKind = iota + 1 EntityKindGroup )
type Group ¶
type Group struct { Metadata *frontmatter.Meta Children []Entity Parent *Group Content *Section }
func (*Group) CompoundID ¶
func (*Group) Kind ¶
func (g *Group) Kind() EntityKind
func (*Group) Meta ¶
func (g *Group) Meta() *frontmatter.Meta
func (*Group) ParentEntity ¶
type Section ¶
type Section struct { Metadata *frontmatter.Meta Content, SideNotes []string HasSideNotes bool Parent *Group }
func (*Section) CompoundID ¶
func (*Section) Kind ¶
func (s *Section) Kind() EntityKind
func (*Section) Meta ¶
func (s *Section) Meta() *frontmatter.Meta
func (*Section) ParentEntity ¶
Click to show internal directories.
Click to hide internal directories.