chore: initial gomark plugin (#1678)

chore: initial gomark folder
This commit is contained in:
boojack
2023-05-18 21:33:18 +08:00
committed by GitHub
parent a07d5d38d6
commit 88799d469c
11 changed files with 174 additions and 0 deletions

19
plugin/gomark/ast/ast.go Normal file
View File

@ -0,0 +1,19 @@
package ast
type Node struct {
Type string
Text string
Children []*Node
}
type Document struct {
Nodes []*Node
}
func NewDocument() *Document {
return &Document{}
}
func (d *Document) AddNode(node *Node) {
d.Nodes = append(d.Nodes, node)
}