A go wrapper around libyaml
C Objective-C Go
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.md
api.c
dumper.c
emitter.c
gamble_suite_test.go
helpers.go
libyaml-LICENSE
loader.c
marshal.go
marshal_test.go
parse.go
parse_test.go
parser.c
reader.c
scanner.c
writer.c
yaml.h
yaml_defines.h
yaml_extensions.h
yaml_private.h

README.md

Gamble (libyaml for GO)

Making the world better, one YAML parser at a time

Usage:

package main

import (
  "fmt"
	"github.com/cloudfoundry/gamble"
)

var myYAML = `
---
some_key:
- some
- items
`

func main() {
	document, err := gamble.Parse(myYAML)
	if err != nil {
	  println("Could not parse yaml")
	  return
	}

  fmt.Printf("%#v\n", document)
  // prints out a map from string to interface
  // eg:
	//    map[string]interface{}{
	//    	"some_key": []interface{}{
	//    		"some",
	//    		"items",
	//    	},
	//    }
}