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
Describe the bug
Feature Request (or question if already possible):
I'd like to be able to parse a struct w/ partial fields defined and have go-toml v2 Unmarshal into the fields defined in the struct and store the rest of the TOML into a []byte. The go json pkg has this capability by embedding the json.RawMessage type (a []byte) on the struct.
To Reproduce
Steps to reproduce the behavior. Including TOML files.
Describe the bug
Feature Request (or question if already possible):
I'd like to be able to parse a struct w/ partial fields defined and have go-toml v2 Unmarshal into the fields defined in the struct and store the rest of the TOML into a
[]byte
. The go json pkg has this capability by embedding thejson.RawMessage
type (a []byte) on the struct.To Reproduce
Steps to reproduce the behavior. Including TOML files.
https://go.dev/play/p/5KE5CeRhXPB
output:
Expected behavior
A clear and concise description of what you expected to happen, if other than "should work".
The output of the snippet above should be something like this:
Versions
github.com/pelletier/go-toml/v2 v2.0.2 (216628222f5716163bb96d3651a68feef31b090d)
go version go1.18.1 darwin/amd64
macOS
Additional context
Add any other context about the problem here that you think may help to diagnose.
The text was updated successfully, but these errors were encountered: