Closed avorima closed 5 years ago
Assuming we have the following data structures:
type Foo struct { Name string `hcl:",key"` A int `hcl:"a"` } type Bar struct { Foo `hcl:",squash"` B int `hcl:"b"` } type Baz struct { Bar Bar `hcl:"bar"` }
Encoding Baz will omit the Name field of the Foo struct.
Baz
Name
Foo
Thanks for the report! Feel free to submit a patch if you can figure out a fix and I'll review 😁
Assuming we have the following data structures:
Encoding
Baz
will omit theName
field of theFoo
struct.