elastic / elastic/go-structform

Support for capturing unknown fields

Open
#22 0 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.