Documentation
¶
Index ¶
- type GokogiriHtmlTransformer
- func (xform *GokogiriHtmlTransformer) CheckXPath(path string) error
- func (xform *GokogiriHtmlTransformer) CompileXPath(path string) ht.Selector
- func (xform *GokogiriHtmlTransformer) ConvertCSS(input string) string
- func (xform *GokogiriHtmlTransformer) CreateCDataNode(data string) ht.Node
- func (xform *GokogiriHtmlTransformer) CreateElementNode(tag string) ht.Node
- func (xform *GokogiriHtmlTransformer) CreateEmptyDocument(inEncoding, outEncoding []byte)
- func (xform *GokogiriHtmlTransformer) Free()
- func (xform *GokogiriHtmlTransformer) ParseFragment(content, inEncoding, url, outEncoding []byte) (frag ht.Node, err error)
- func (xform *GokogiriHtmlTransformer) ParseHTML(content, inEncoding, url, outEncoding []byte) (err error)
- func (xform *GokogiriHtmlTransformer) ParseXML(content, inEncoding, url, outEncoding []byte) error
- func (xform *GokogiriHtmlTransformer) Root() (ht.Node, ht.Node)
- func (xform *GokogiriHtmlTransformer) SetMetaEncoding(encoding string) (err error)
- func (xform *GokogiriHtmlTransformer) String() (str string)
- type GokogiriXPathSelector
- type GokogiriXmlNode
- func (node *GokogiriXmlNode) Duplicate() ht.Node
- func (node *GokogiriXmlNode) FirstChild() ht.Node
- func (node *GokogiriXmlNode) GetAttribute(name string) ht.Node
- func (node *GokogiriXmlNode) GetContent() string
- func (node *GokogiriXmlNode) GetInnerHtml() (result string)
- func (node *GokogiriXmlNode) GetName() string
- func (node *GokogiriXmlNode) InsertAfter(data interface{}) (err error)
- func (node *GokogiriXmlNode) InsertBefore(data interface{}) (err error)
- func (node *GokogiriXmlNode) InsertBottom(data interface{}) (err error)
- func (node *GokogiriXmlNode) InsertTop(data interface{}) (err error)
- func (node *GokogiriXmlNode) Is(cmp ht.Node) (result bool)
- func (node *GokogiriXmlNode) IsDocument() (result bool)
- func (node *GokogiriXmlNode) IsElement() (result bool)
- func (node *GokogiriXmlNode) IsText() (result bool)
- func (node *GokogiriXmlNode) IsValid() bool
- func (node *GokogiriXmlNode) LastChild() ht.Node
- func (node *GokogiriXmlNode) NextSibling() ht.Node
- func (node *GokogiriXmlNode) Parent() ht.Node
- func (node *GokogiriXmlNode) Path() string
- func (node *GokogiriXmlNode) PreviousSibling() ht.Node
- func (node *GokogiriXmlNode) Remove()
- func (node *GokogiriXmlNode) RemoveAttribute(name string) ht.Node
- func (node *GokogiriXmlNode) SelectCSS(data string) (results []ht.Node, err error)
- func (node *GokogiriXmlNode) SelectCSSByDeadline(data string, deadline *time.Time) (results []ht.Node, err error)
- func (node *GokogiriXmlNode) SelectXPath(data interface{}) (results []ht.Node, err error)
- func (node *GokogiriXmlNode) SelectXPathByDeadline(data interface{}, deadline *time.Time) (results []ht.Node, err error)
- func (node *GokogiriXmlNode) SetAttribute(name, value string) ht.Node
- func (node *GokogiriXmlNode) SetContent(content interface{}) error
- func (node *GokogiriXmlNode) SetInnerHtml(data interface{}) error
- func (node *GokogiriXmlNode) SetName(name string)
- func (node *GokogiriXmlNode) String() string
- func (node *GokogiriXmlNode) UnderlyingNode() interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GokogiriHtmlTransformer ¶
type GokogiriHtmlTransformer struct {
// contains filtered or unexported fields
}
func NewXForm ¶
func NewXForm() *GokogiriHtmlTransformer
func (*GokogiriHtmlTransformer) CheckXPath ¶
func (xform *GokogiriHtmlTransformer) CheckXPath(path string) error
func (*GokogiriHtmlTransformer) CompileXPath ¶
func (xform *GokogiriHtmlTransformer) CompileXPath(path string) ht.Selector
func (*GokogiriHtmlTransformer) ConvertCSS ¶
func (xform *GokogiriHtmlTransformer) ConvertCSS(input string) string
func (*GokogiriHtmlTransformer) CreateCDataNode ¶
func (xform *GokogiriHtmlTransformer) CreateCDataNode(data string) ht.Node
func (*GokogiriHtmlTransformer) CreateElementNode ¶
func (xform *GokogiriHtmlTransformer) CreateElementNode(tag string) ht.Node
func (*GokogiriHtmlTransformer) CreateEmptyDocument ¶
func (xform *GokogiriHtmlTransformer) CreateEmptyDocument(inEncoding, outEncoding []byte)
func (*GokogiriHtmlTransformer) Free ¶
func (xform *GokogiriHtmlTransformer) Free()
func (*GokogiriHtmlTransformer) ParseFragment ¶
func (xform *GokogiriHtmlTransformer) ParseFragment(content, inEncoding, url, outEncoding []byte) (frag ht.Node, err error)
func (*GokogiriHtmlTransformer) ParseHTML ¶
func (xform *GokogiriHtmlTransformer) ParseHTML(content, inEncoding, url, outEncoding []byte) (err error)
func (*GokogiriHtmlTransformer) ParseXML ¶
func (xform *GokogiriHtmlTransformer) ParseXML(content, inEncoding, url, outEncoding []byte) error
func (*GokogiriHtmlTransformer) Root ¶
func (xform *GokogiriHtmlTransformer) Root() (ht.Node, ht.Node)
func (*GokogiriHtmlTransformer) SetMetaEncoding ¶
func (xform *GokogiriHtmlTransformer) SetMetaEncoding(encoding string) (err error)
func (*GokogiriHtmlTransformer) String ¶
func (xform *GokogiriHtmlTransformer) String() (str string)
type GokogiriXPathSelector ¶
type GokogiriXPathSelector struct {
xpath.Expression
}
func (*GokogiriXPathSelector) Free ¶
func (xp *GokogiriXPathSelector) Free()
func (*GokogiriXPathSelector) String ¶
func (xp *GokogiriXPathSelector) String() string
func (*GokogiriXPathSelector) UnderlyingExpression ¶
func (xp *GokogiriXPathSelector) UnderlyingExpression() interface{}
type GokogiriXmlNode ¶
type GokogiriXmlNode struct {
// contains filtered or unexported fields
}
func (*GokogiriXmlNode) Duplicate ¶
func (node *GokogiriXmlNode) Duplicate() ht.Node
func (*GokogiriXmlNode) FirstChild ¶
func (node *GokogiriXmlNode) FirstChild() ht.Node
func (*GokogiriXmlNode) GetAttribute ¶
func (node *GokogiriXmlNode) GetAttribute(name string) ht.Node
func (*GokogiriXmlNode) GetContent ¶
func (node *GokogiriXmlNode) GetContent() string
func (*GokogiriXmlNode) GetInnerHtml ¶
func (node *GokogiriXmlNode) GetInnerHtml() (result string)
func (*GokogiriXmlNode) GetName ¶
func (node *GokogiriXmlNode) GetName() string
func (*GokogiriXmlNode) InsertAfter ¶
func (node *GokogiriXmlNode) InsertAfter(data interface{}) (err error)
func (*GokogiriXmlNode) InsertBefore ¶
func (node *GokogiriXmlNode) InsertBefore(data interface{}) (err error)
func (*GokogiriXmlNode) InsertBottom ¶
func (node *GokogiriXmlNode) InsertBottom(data interface{}) (err error)
func (*GokogiriXmlNode) InsertTop ¶
func (node *GokogiriXmlNode) InsertTop(data interface{}) (err error)
func (*GokogiriXmlNode) IsDocument ¶
func (node *GokogiriXmlNode) IsDocument() (result bool)
func (*GokogiriXmlNode) IsElement ¶
func (node *GokogiriXmlNode) IsElement() (result bool)
func (*GokogiriXmlNode) IsText ¶
func (node *GokogiriXmlNode) IsText() (result bool)
func (*GokogiriXmlNode) IsValid ¶
func (node *GokogiriXmlNode) IsValid() bool
func (*GokogiriXmlNode) LastChild ¶
func (node *GokogiriXmlNode) LastChild() ht.Node
func (*GokogiriXmlNode) NextSibling ¶
func (node *GokogiriXmlNode) NextSibling() ht.Node
func (*GokogiriXmlNode) Parent ¶
func (node *GokogiriXmlNode) Parent() ht.Node
func (*GokogiriXmlNode) Path ¶
func (node *GokogiriXmlNode) Path() string
func (*GokogiriXmlNode) PreviousSibling ¶
func (node *GokogiriXmlNode) PreviousSibling() ht.Node
func (*GokogiriXmlNode) Remove ¶
func (node *GokogiriXmlNode) Remove()
func (*GokogiriXmlNode) RemoveAttribute ¶
func (node *GokogiriXmlNode) RemoveAttribute(name string) ht.Node
func (*GokogiriXmlNode) SelectCSS ¶
func (node *GokogiriXmlNode) SelectCSS(data string) (results []ht.Node, err error)
func (*GokogiriXmlNode) SelectCSSByDeadline ¶
func (*GokogiriXmlNode) SelectXPath ¶
func (node *GokogiriXmlNode) SelectXPath(data interface{}) (results []ht.Node, err error)
func (*GokogiriXmlNode) SelectXPathByDeadline ¶
func (*GokogiriXmlNode) SetAttribute ¶
func (node *GokogiriXmlNode) SetAttribute(name, value string) ht.Node
func (*GokogiriXmlNode) SetContent ¶
func (node *GokogiriXmlNode) SetContent(content interface{}) error
func (*GokogiriXmlNode) SetInnerHtml ¶
func (node *GokogiriXmlNode) SetInnerHtml(data interface{}) error
func (*GokogiriXmlNode) SetName ¶
func (node *GokogiriXmlNode) SetName(name string)
func (*GokogiriXmlNode) String ¶
func (node *GokogiriXmlNode) String() string
func (*GokogiriXmlNode) UnderlyingNode ¶
func (node *GokogiriXmlNode) UnderlyingNode() interface{}
Click to show internal directories.
Click to hide internal directories.