parse

module
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 25, 2021 License: OSL-3.0

README

Parse

Go parsers for web formats

https://godocs.io/github.com/89z/parse

HTML package

Takes HTML input, and can iterate through elements by tag name or by attribute name and value. Content from text nodes can be returned. Also, you can check if an element has a certain attribute, and return an attribute value given an attribute name. Finally, you can indent and write the HTML to some output.

JavaScript package

Takes JavaScript input, and will return a map. Keys are the variable names, and values are the variable values. The values are returned as byte slices, to make it easy to json.Unmarshal.

Directories

Path Synopsis
cmd
http command
HTML Why use "github.com/tdewolff/parse/v2/html" instead of "golang.org/x/net/html"? "go.sum" with "golang.org/x/net/html" looks like this: golang.org/x/net v0.0.0-20210924151903 golang.org/x/sys v0.0.0-20201119102817 golang.org/x/sys v0.0.0-20210423082822 golang.org/x/term v0.0.0-20201126162022 golang.org/x/text v0.3.6 golang.org/x/tools v0.0.0-20180917221912 "go.sum" with "github.com/tdewolff/parse/v2/html" looks like this: github.com/tdewolff/parse/v2 v2.5.21 github.com/tdewolff/test v1.0.6 and because "tdewolff" also has a JavaScript parser, and "golang.org" does not.
HTML Why use "github.com/tdewolff/parse/v2/html" instead of "golang.org/x/net/html"? "go.sum" with "golang.org/x/net/html" looks like this: golang.org/x/net v0.0.0-20210924151903 golang.org/x/sys v0.0.0-20201119102817 golang.org/x/sys v0.0.0-20210423082822 golang.org/x/term v0.0.0-20201126162022 golang.org/x/text v0.3.6 golang.org/x/tools v0.0.0-20180917221912 "go.sum" with "github.com/tdewolff/parse/v2/html" looks like this: github.com/tdewolff/parse/v2 v2.5.21 github.com/tdewolff/test v1.0.6 and because "tdewolff" also has a JavaScript parser, and "golang.org" does not.
research
2021-09-13 command
2021-09-14 command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL