You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into an issue when trying to obtain remaining fields for the example below, the second nested field (your) was returned as part of remaining fields.
HCL:
name = "hello"
nested {
name = "my"
}
nested {
name = "your"
}
message1 = "wonderful"
message2 = world
type remainStruct struct {
Name string `hcl:"name"`
Nested []*remainNested `hcl:"nested,optional"`
Remain []*Entry `hcl:",remain"`
}
type remainNested struct {
Name string `hcl:"name"`
}
The image below shows the third remaining field in the unmarshalled object:
The text was updated successfully, but these errors were encountered:
I ran into an issue when trying to obtain remaining fields for the example below, the second
nested
field (your) was returned as part of remaining fields.HCL:
The image below shows the third remaining field in the unmarshalled object:
The text was updated successfully, but these errors were encountered: