We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is currently supported ? Not sure if i'm using incorrect syntax
func main() { yamlStr := ` players: &players - Name: bob age: 18 fullPlayers: - <<: *players Name: Dave` fmt.Println("Data Read\n", yamlStr) var data interface{} err := yaml.NewDecoder(strings.NewReader(yamlStr)).Decode(&data) if err != nil { log.Fatal(err) } fmt.Printf("%T %v\n", data, data) }
Expecting
{ "fullPlayers": [ { "age": 18, "Name": "Dave" } ], "players": [ { "age": 18, "Name": "bob" } ] }
The text was updated successfully, but these errors were encountered:
my lib is going to support it: https://codeberg.org/6543/xyaml and it's with in the yaml spec see answer
just in case anybody is interested ;)
Sorry, something went wrong.
No branches or pull requests
Is currently supported ? Not sure if i'm using incorrect syntax
Expecting
The text was updated successfully, but these errors were encountered: