elastic / elastic/go-structform
Support for capturing unknown fields
Open
enhancement
- Dominant language
- Go
- Stars
- 17
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
When parsing json events into go structs it would be nice to detect and collect unkown fields, e.g. for passthrough, validation or further processing.
e.g. when defining a struct like this we would collect unknown fields into `Extra`.
```
type MyStruct {
A int
B string
Extra map[string]interface{} `struct:",missingfields"`
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.