package html
import (
"io"
)
type Node struct {
Type NodeType
Data string
Attr []Attribute
FirstChild, NextSibling *Node
}
type NodeType int32
const (
ErrorNode NodeType = iota
TextNode
DocumentNode
ElementNode
CommentNode
DoctypeNode
)
type Attribute struct {
Key, Val string
}
func Parse(r io.Reader) (*Node, error)
报错如下:
command-line-arguments
demo\net\html\main.go:29:6: missing function body
具体是什么原因呢???
有疑问加站长微信联系(非本文作者)