CircleCI GoDoc Go Report Card License
A parser and a generator for Valve Data Format written in Go. It does not support all the features provided in Valve Data Format spec.
Supported files (at least):
- remotecache.vdf
package main import ( "io/ioutil" "github.com/mdouchement/vdf" "github.com/sanity-io/litter" ) func main() { data, err := ioutil.ReadFile("remotecache.vdf") check(err) root, err := vdf.Parse(string(data)) check(err) litter.Dump(root) } func check(err error) { if err != nil { panic(err) } }
MIT
All PRs are welcome.
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
As possible, run the following commands to format and lint the code:
# Format find . -name '*.go' -not -path './vendor*' -exec gofmt -s -w {} \; # Lint gometalinter --config=gometalinter.json ./...