Documentation ¶
Index ¶
- type Doc
- type Elm
- func (e *Elm) After(node *Elm)
- func (e *Elm) Attr(key string, val ...interface{}) string
- func (e *Elm) Before(node *Elm)
- func (e *Elm) Child(query ...interface{}) []*Elm
- func (e *Elm) ChildAppend(node *Elm)
- func (e *Elm) ChildRemove(node ...interface{})
- func (e *Elm) Copy() *Elm
- func (e *Elm) Each(f func(node *Elm))
- func (e *Elm) Find(query string) []*Elm
- func (e *Elm) FindEach(query string, f func(node *Elm))
- func (e *Elm) FindFirst(query string) *Elm
- func (e *Elm) Parent() *Elm
- func (e *Elm) Remove()
- func (e *Elm) Repace(node *Elm)
- func (e *Elm) String() string
- func (e *Elm) Text(text ...string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Elm ¶
type Elm struct {
// contains filtered or unexported fields
}
Elm struct
func NewElmFromFile ¶
NewElmFromFile 从文件创建*Elm 必须是只有一个根的树形结构 否则只能获取到第一个根
func (*Elm) ChildRemove ¶
func (e *Elm) ChildRemove(node ...interface{})
ChildRemove 移除子元素 可以是选择器,可以是*Elm或[]*Elm,node为空时全部移除
Click to show internal directories.
Click to hide internal directories.