Documentation ¶
Index ¶
- Constants
- func GenerateTag(text string) (res []string)
- func IsDocumentStart(text string) (isStart bool)
- func IsTag(text string) (res bool)
- func TypeTagEnd(text string) (res int)
- type Element
- func (e *Element) Append(ele *Element)
- func (e *Element) Clear()
- func (e *Element) Extract() (err error)
- func (e *Element) Find(tagName string) (res *Element)
- func (e *Element) FindAll(tagName string) (res []*Element)
- func (e *Element) GetItem(name string) string
- func (e *Element) GetMyIndexByParentChrildren() int
- func (e *Element) Insert(position int, ele *Element)
- func (e *Element) InsertBefore(ele *Element)
- func (e *Element) SetItem(name, value string)
- func (e *Element) Text() (text []string)
- func (e *Element) ToString() string
Constants ¶
View Source
const ( ROOT = 0 DOCUMENT_START = 1 TAG = 2 TEXT = 3 ORIGINAL = 4 )
Variables ¶
This section is empty.
Functions ¶
func TypeTagEnd ¶
close state 0 is not close 1 is self close 2 is normal close
Types ¶
Click to show internal directories.
Click to hide internal directories.