parse

module
v1.1.1 Latest Latest
Warning

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

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

README

Parse

Go parsers for web formats

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

JavaScript package

I have a JavaScript lexer here:

https://github.com/89z/mech/tree/9ca13fda

but I removed it, as I am currently not using it. 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.

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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