Documentation
¶
Index ¶
- Constants
- func CSSQuery(reader io.Reader, writer io.Writer, query string, attr string, ...) error
- func FormatHtml(reader io.Reader, writer io.Writer, indent string, colors int) error
- func FormatJson(reader io.Reader, writer io.Writer, indent string, colors int) error
- func FormatXml(reader io.Reader, writer io.Writer, indent string, colors int) error
- func IsHTML(input string) bool
- func IsJSON(input string) bool
- func LoadConfig(fileName string) error
- func NodeToJSON(node *xmlquery.Node, depth int) interface{}
- func PagerPrint(reader io.Reader, writer io.Writer) error
- func XPathQuery(reader io.Reader, writer io.Writer, query string, singleNode bool, ...) (errRes error)
- type ConfigOptions
- type ContentType
- type QueryOptions
Constants ¶
View Source
const ( ColorsDefault = iota ColorsForced ColorsDisabled )
Variables ¶
This section is empty.
Functions ¶
func FormatHtml ¶ added in v1.0.0
func FormatJson ¶ added in v1.2.0
func LoadConfig ¶ added in v1.2.5
func NodeToJSON ¶ added in v1.3.0
NodeToJSON converts an xmlquery.Node to a JSON object. The depth parameter specifies how many levels of children to include in the result. A depth of 0 means only the text content of the node is included. A depth of 1 means the node's children are included, but not their children, and so on.
func XPathQuery ¶
Types ¶
type ConfigOptions ¶ added in v1.2.5
func GetConfig ¶ added in v1.2.5
func GetConfig() ConfigOptions
type ContentType ¶ added in v1.2.0
type ContentType int
const ( ContentXml ContentType = iota ContentHtml ContentJson ContentText )
type QueryOptions ¶ added in v1.2.0
Click to show internal directories.
Click to hide internal directories.