Documentation
¶
Overview ¶
Package encode facilitates encoding data based on struct tags to simplify development. It currently supports querying documents based on xpath from struct tags and building url params from structs. If a field is unset the default behaviour of all functions is to skip it, contrary to what other packages like json do by using the struct field name.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetXpathLinks ¶ added in v0.2.0
Returns a list of Link by searching for all a tags.
func URLMapParams ¶
Function to encode a map into URL parameters.
func Xpath ¶
Function to scrape any html document with xpath provided in struct tags:
- doc *html.Node : The base document or node at which all queries start.
- val interface : input data type.
See https://github.com/Jisin/filmigo/xpath for examples and full reference.
Types ¶
This section is empty.