Versions in this module Expand all Collapse all v1 v1.2.1 Feb 26, 2019 Changes in this version + func EmptyNodes(nodes []Node) bool + func IsHeader(t NodeType) bool + func IsInline(t NodeType) bool + func IsItemsList(t NodeType) bool + type ButtonNode struct + Colored bool + Content *ListNode + Download bool + Raised bool + func NewButtonNode(raised, colored, download bool, n ...Node) *ButtonNode + func (b *ButtonNode) Block() interface{} + func (b *ButtonNode) Env() []string + func (b *ButtonNode) MutateBlock(v interface{}) + func (b *ButtonNode) MutateEnv(e []string) + func (b *ButtonNode) MutateType(t NodeType) + func (b *ButtonNode) Type() NodeType + func (bn *ButtonNode) Empty() bool + type CodeNode struct + Lang string + Term bool + Value string + func NewCodeNode(v string, term bool) *CodeNode + func (b *CodeNode) Block() interface{} + func (b *CodeNode) Env() []string + func (b *CodeNode) MutateBlock(v interface{}) + func (b *CodeNode) MutateEnv(e []string) + func (b *CodeNode) MutateType(t NodeType) + func (b *CodeNode) Type() NodeType + func (cn *CodeNode) Empty() bool + type Codelab struct + Steps []*Step + func (c *Codelab) NewStep(title string) *Step + type Context struct + Env string + Format string + MainGA string + Prefix string + Source string + Updated *ContextTime + type ContextMeta struct + type ContextTime time.Time + func (ct *ContextTime) UnmarshalJSON(b []byte) error + func (ct ContextTime) MarshalJSON() ([]byte, error) + type GridCell struct + Colspan int + Content *ListNode + Rowspan int + type GridNode struct + Rows [][]*GridCell + func NewGridNode(rows ...[]*GridCell) *GridNode + func (b *GridNode) Block() interface{} + func (b *GridNode) Env() []string + func (b *GridNode) MutateBlock(v interface{}) + func (b *GridNode) MutateEnv(e []string) + func (b *GridNode) MutateType(t NodeType) + func (b *GridNode) Type() NodeType + func (gn *GridNode) Empty() bool + type HeaderNode struct + Content *ListNode + Level int + func NewHeaderNode(level int, n ...Node) *HeaderNode + func (b *HeaderNode) Block() interface{} + func (b *HeaderNode) Env() []string + func (b *HeaderNode) MutateBlock(v interface{}) + func (b *HeaderNode) MutateEnv(e []string) + func (b *HeaderNode) MutateType(t NodeType) + func (b *HeaderNode) Type() NodeType + func (hn *HeaderNode) Empty() bool + type ImageNode struct + Alt string + MaxWidth float32 + Src string + Title string + func NewImageNode(src string) *ImageNode + func (b *ImageNode) Block() interface{} + func (b *ImageNode) Env() []string + func (b *ImageNode) MutateBlock(v interface{}) + func (b *ImageNode) MutateEnv(e []string) + func (b *ImageNode) MutateType(t NodeType) + func (b *ImageNode) Type() NodeType + func (in *ImageNode) Empty() bool + type ImportNode struct + Content *ListNode + URL string + func NewImportNode(url string) *ImportNode + func (b *ImportNode) Block() interface{} + func (b *ImportNode) Env() []string + func (b *ImportNode) MutateEnv(e []string) + func (b *ImportNode) MutateType(t NodeType) + func (b *ImportNode) Type() NodeType + func (in *ImportNode) Empty() bool + func (in *ImportNode) MutateBlock(v interface{}) + type InfoboxKind string + const InfoboxNegative + const InfoboxPositive + type InfoboxNode struct + Content *ListNode + Kind InfoboxKind + func NewInfoboxNode(k InfoboxKind, n ...Node) *InfoboxNode + func (b *InfoboxNode) Block() interface{} + func (b *InfoboxNode) Env() []string + func (b *InfoboxNode) MutateBlock(v interface{}) + func (b *InfoboxNode) MutateEnv(e []string) + func (b *InfoboxNode) MutateType(t NodeType) + func (b *InfoboxNode) Type() NodeType + func (ib *InfoboxNode) Empty() bool + type ItemsListNode struct + Items []*ListNode + ListType string + Start int + func NewItemsListNode(typ string, start int) *ItemsListNode + func (b *ItemsListNode) Block() interface{} + func (b *ItemsListNode) Env() []string + func (b *ItemsListNode) MutateBlock(v interface{}) + func (b *ItemsListNode) MutateEnv(e []string) + func (b *ItemsListNode) MutateType(t NodeType) + func (b *ItemsListNode) Type() NodeType + func (il *ItemsListNode) Empty() bool + func (il *ItemsListNode) NewItem(nodes ...Node) *ListNode + type LegacyStatus []string + func (s *LegacyStatus) UnmarshalJSON(b []byte) error + func (s LegacyStatus) MarshalJSON() ([]byte, error) + func (s LegacyStatus) String() string + type ListNode struct + Nodes []Node + func NewListNode(nodes ...Node) *ListNode + func (b *ListNode) Block() interface{} + func (b *ListNode) Env() []string + func (b *ListNode) MutateBlock(v interface{}) + func (b *ListNode) MutateEnv(e []string) + func (b *ListNode) MutateType(t NodeType) + func (b *ListNode) Type() NodeType + func (l *ListNode) Append(n ...Node) + func (l *ListNode) Empty() bool + func (l *ListNode) Prepend(n ...Node) + type Meta struct + Author string + Categories []string + Duration int + Feedback string + GA string + ID string + Status *LegacyStatus + Summary string + Tags []string + Theme string + Title string + URL string + type Node interface + Block func() interface{} + Empty func() bool + Env func() []string + MutateBlock func(interface{}) + MutateEnv func(env []string) + MutateType func(NodeType) + Type func() NodeType + type NodeType uint32 + const NodeButton + const NodeCode + const NodeGrid + const NodeHeader + const NodeHeaderCheck + const NodeHeaderFAQ + const NodeImage + const NodeImport + const NodeInfobox + const NodeInvalid + const NodeItemsCheck + const NodeItemsFAQ + const NodeItemsList + const NodeList + const NodeSurvey + const NodeText + const NodeURL + const NodeYouTube + type Step struct + Content *ListNode + Duration time.Duration + Tags []string + Title string + type SurveyGroup struct + Name string + Options []string + type SurveyNode struct + Groups []*SurveyGroup + ID string + func NewSurveyNode(id string, groups ...*SurveyGroup) *SurveyNode + func (b *SurveyNode) Block() interface{} + func (b *SurveyNode) Env() []string + func (b *SurveyNode) MutateBlock(v interface{}) + func (b *SurveyNode) MutateEnv(e []string) + func (b *SurveyNode) MutateType(t NodeType) + func (b *SurveyNode) Type() NodeType + func (sn *SurveyNode) Empty() bool + type TextNode struct + Bold bool + Code bool + Italic bool + Value string + func NewTextNode(v string) *TextNode + func (b *TextNode) Block() interface{} + func (b *TextNode) Env() []string + func (b *TextNode) MutateBlock(v interface{}) + func (b *TextNode) MutateEnv(e []string) + func (b *TextNode) MutateType(t NodeType) + func (b *TextNode) Type() NodeType + func (tn *TextNode) Empty() bool + type URLNode struct + Content *ListNode + Name string + Target string + URL string + func NewURLNode(url string, n ...Node) *URLNode + func (b *URLNode) Block() interface{} + func (b *URLNode) Env() []string + func (b *URLNode) MutateBlock(v interface{}) + func (b *URLNode) MutateEnv(e []string) + func (b *URLNode) MutateType(t NodeType) + func (b *URLNode) Type() NodeType + func (un *URLNode) Empty() bool + type YouTubeNode struct + VideoID string + func NewYouTubeNode(vid string) *YouTubeNode + func (b *YouTubeNode) Block() interface{} + func (b *YouTubeNode) Env() []string + func (b *YouTubeNode) MutateBlock(v interface{}) + func (b *YouTubeNode) MutateEnv(e []string) + func (b *YouTubeNode) MutateType(t NodeType) + func (b *YouTubeNode) Type() NodeType + func (yt *YouTubeNode) Empty() bool Incompatible versions in this module v2.2.4+incompatible Jan 12, 2021