package ast
import (
"fmt"
gast "github.com/yuin/goldmark/ast"
)
type FootnoteLink struct {
gast .BaseInline
Index int
RefCount int
RefIndex int
}
func (n *FootnoteLink ) Dump (source []byte , level int ) {
m := map [string ]string {}
m ["Index" ] = fmt .Sprintf ("%v" , n .Index )
m ["RefCount" ] = fmt .Sprintf ("%v" , n .RefCount )
m ["RefIndex" ] = fmt .Sprintf ("%v" , n .RefIndex )
gast .DumpHelper (n , source , level , m , nil )
}
var KindFootnoteLink = gast .NewNodeKind ("FootnoteLink" )
func (n *FootnoteLink ) Kind () gast .NodeKind {
return KindFootnoteLink
}
func NewFootnoteLink (index int ) *FootnoteLink {
return &FootnoteLink {
Index : index ,
RefCount : 0 ,
RefIndex : 0 ,
}
}
type FootnoteBacklink struct {
gast .BaseInline
Index int
RefCount int
RefIndex int
}
func (n *FootnoteBacklink ) Dump (source []byte , level int ) {
m := map [string ]string {}
m ["Index" ] = fmt .Sprintf ("%v" , n .Index )
m ["RefCount" ] = fmt .Sprintf ("%v" , n .RefCount )
m ["RefIndex" ] = fmt .Sprintf ("%v" , n .RefIndex )
gast .DumpHelper (n , source , level , m , nil )
}
var KindFootnoteBacklink = gast .NewNodeKind ("FootnoteBacklink" )
func (n *FootnoteBacklink ) Kind () gast .NodeKind {
return KindFootnoteBacklink
}
func NewFootnoteBacklink (index int ) *FootnoteBacklink {
return &FootnoteBacklink {
Index : index ,
RefCount : 0 ,
RefIndex : 0 ,
}
}
type Footnote struct {
gast .BaseBlock
Ref []byte
Index int
}
func (n *Footnote ) Dump (source []byte , level int ) {
m := map [string ]string {}
m ["Index" ] = fmt .Sprintf ("%v" , n .Index )
m ["Ref" ] = string (n .Ref )
gast .DumpHelper (n , source , level , m , nil )
}
var KindFootnote = gast .NewNodeKind ("Footnote" )
func (n *Footnote ) Kind () gast .NodeKind {
return KindFootnote
}
func NewFootnote (ref []byte ) *Footnote {
return &Footnote {
Ref : ref ,
Index : -1 ,
}
}
type FootnoteList struct {
gast .BaseBlock
Count int
}
func (n *FootnoteList ) Dump (source []byte , level int ) {
m := map [string ]string {}
m ["Count" ] = fmt .Sprintf ("%v" , n .Count )
gast .DumpHelper (n , source , level , m , nil )
}
var KindFootnoteList = gast .NewNodeKind ("FootnoteList" )
func (n *FootnoteList ) Kind () gast .NodeKind {
return KindFootnoteList
}
func NewFootnoteList () *FootnoteList {
return &FootnoteList {
Count : 0 ,
}
}
The pages are generated with Golds v0.8.2 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .