timolinn / html

[WIP] HTML Parser written in Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTML Parser

I am currently re-writing this parser.

This is a simple html parser, it really is nothing super serious. However, it will power nginB, a mini browser engine.

Usage

    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)
    }

About

[WIP] HTML Parser written in Go

License:MIT License


Languages

Language:Go 100.0%