# goh
> use golang to parse html and get node values
## Usage
```go
package main
import (
"fmt"
"strings"
"gitter.top/common/goh"
)
func main() {
reader := strings.NewReader(`
hello world
`)
parser, err := goh.NewParser(reader)
if err != nil {
panic(err)
}
h1Value, err := parser.Find("h1").Value()
if err != nil {
panic(err)
}
fmt.Println("h1 value:", h1Value) // hello world
barValue, err := parser.Find("div.foo #bar").Value()
if err != nil {
panic(err)
}
fmt.Println("bar value:", barValue) // bar
}
```