feat(ipub,ast): Body Element definition
This commit is contained in:
20
ipub/ast/section.go
Normal file
20
ipub/ast/section.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package ast
|
||||
|
||||
import (
|
||||
"encoding/xml"
|
||||
)
|
||||
|
||||
type Section struct {
|
||||
Body Body `xml:"body"`
|
||||
}
|
||||
|
||||
type Body struct {
|
||||
BaseElement
|
||||
}
|
||||
|
||||
var KindBody = NewElementKind("body", &Body{})
|
||||
|
||||
func (n *Body) Kind() ElementKind {
|
||||
return KindBody
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user