Skip to content

timolinn/html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages