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
Is your feature request related to a problem? Please describe.
While looking at migrating Hugo from BurntSushi to this package, I found that this package doesn't support unmarshaling into an empty interface{}. Returns an error "only a pointer to struct or map can be unmarshaled from TOML."
Describe the solution you'd like
When an empty interface{} is passed to toml.Unmarshal as the v parameter, decode as a map[string]interface{}.
Describe alternatives you've considered
Stick with BurntSushi. 😞
Totally right, go-toml should be able to do that. At that point I don't see any blocker to support it -- except finding the time to actually do the work.
Is your feature request related to a problem? Please describe.
While looking at migrating Hugo from BurntSushi to this package, I found that this package doesn't support unmarshaling into an empty
interface{}
. Returns an error "only a pointer to struct or map can be unmarshaled from TOML."Describe the solution you'd like
When an empty
interface{}
is passed totoml.Unmarshal
as thev
parameter, decode as amap[string]interface{}
.Describe alternatives you've considered
Stick with BurntSushi. 😞
Additional context
map[interface{}]interface{}
, but that idea was abandoned in v3)The text was updated successfully, but these errors were encountered: