Skip to content

hypnguyen1209/goyml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goyml

YAML parser for go that does not require schema

Go Reference

install

go get github.com/hypnguyen1209/goyml

usage

package main

import (
	"os"

	"github.com/hypnguyen1209/goyml"
)

func main() {
	test, _ := os.ReadFile("./test.yml")
	yq := goyml.Parse(test)
	d1, _ := yq.Int("age")
	d2, _ := yq.String("name")
	d3, _ := yq.ArrayOfStrings("work")
	println(d2, d1)
	for _, v := range d3 {
		println(v)
	}
}

Credit

About

YAML parser for Go that does not require schema

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages