Extra remaining fields in the presence of a slice of structs
- Lenguaje dominante
- Go
- Estrellas
- 53
- Forks
- 12
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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:

Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.