package main
import (
"gopkg.in/yaml.v2"
)
type x struct {
field string
}
type y struct {
x
}
func main() {
b := []byte(`
x:
field: something
`)
var Y y
println(yaml.Unmarshal(b, &Y))
}
panic: reflect.Value.Interface: cannot return value obtained from unexported field or method [recovered]
panic: reflect.Value.Interface: cannot return value obtained from unexported field or method