Documentation ¶ Index ¶ type Heading func (n *Heading) Content() string func (n *Heading) MarshalJSON() ([]byte, error) type Item func (n *Item) Content() string func (n *Item) MarshalJSON() ([]byte, error) type List func (n *List) Content() string func (n *List) MarshalJSON() ([]byte, error) type MinimarkNode type Paragraph func (n *Paragraph) Content() string func (n *Paragraph) MarshalJSON() ([]byte, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Heading ¶ type Heading struct { Level int Text string } Heading ... func (*Heading) Content ¶ func (n *Heading) Content() string Content ... func (*Heading) MarshalJSON ¶ func (n *Heading) MarshalJSON() ([]byte, error) MarshalJSON ... type Item ¶ type Item struct { Depth int Text string } Item ... func (*Item) Content ¶ func (n *Item) Content() string Content ... func (*Item) MarshalJSON ¶ func (n *Item) MarshalJSON() ([]byte, error) MarshalJSON ... type List ¶ type List struct { Items []*Item } List ... func (*List) Content ¶ func (n *List) Content() string Content ... func (*List) MarshalJSON ¶ func (n *List) MarshalJSON() ([]byte, error) MarshalJSON ... type MinimarkNode ¶ type MinimarkNode interface { Content() string } MinimarkNode ... type Paragraph ¶ type Paragraph struct { Text string } Paragraph ... func (*Paragraph) Content ¶ func (n *Paragraph) Content() string Content ... func (*Paragraph) MarshalJSON ¶ func (n *Paragraph) MarshalJSON() ([]byte, error) MarshalJSON ... Source Files ¶ View all Source files doc.go json.go Click to show internal directories. Click to hide internal directories.