package main
import (
"fmt"
"go.uber.org/config"
)
func main() {
p, err := config.NewYAMLProviderFromBytes([]byte(`foo: yes`))
if err != nil {
panic(err)
}
var foo string
if err := p.Get("foo").Populate(&foo); err != nil {
panic(err)
}
fmt.Println(foo)
}
This prints true, not yes as I'd expect.