This is a simple html parser, it really is nothing super serious. However, it will power nginB, a mini browser engine.
package main
import (
"fmt"
"github.com/timolinn/html-parser"
)
func main() {
tmpl := []byte(`<html><body><p id="hw">Hello, world</p></body></html>`)
parsed := html.Parse(tmpl)
fmt.Printf("%+v\n", parsed)
}