stretchr / objx

Go package for dealing with maps, slices, JSON and other data.
MIT License
701 stars 75 forks source link

Set() with key pointing to nonexistent map path #66

Closed geseq closed 6 years ago

geseq commented 6 years ago

When calling Set() on a nonexistent map path, the path can be created quite easily in case of MSIs.

I have not written an implementation for arrays, as that might be problematic in case of keys like obj.Set("a.b[10000].c", ...)

hanzei commented 6 years ago

@earncef That you for your contributions. I`m currently on vacation and will into them next week.

geseq commented 6 years ago

No worries. Take all the time you need.