Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

cloudfoundry-attic/gamble

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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",
	//    	},
	//    }
}

About

A go wrapper around libyaml

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE
MIT
libyaml-LICENSE

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •