First off, thanks for this tool.
I was trying to parse a simple yaml file like the one below and I couldn't find a helpful example.
I had to experiment several times before l I was able to parse it.
It would be nice if you added more examples. (I'm willing to contribute)
config, err := yaml.ReadFile("/database/seeds/countries.yml")
if err != nil {
panic(err)
}
lst, ok := config.Root.(yaml.List)
if !ok {
panic("failed to parse")
}
for i := 0; i < lst.Len(); i++ {
item := lst.Item(i)
fmt.Println(item)
}