Open dgunay opened 1 year ago
I found myself wanting to do something like this
m := objx.New(data) m.Delete("foo.bar")
But didn't see any way of doing that without casting back to map[string]any and doing it myself. It would be nice to have this. I worked around it by using m.Set("foo.bar", nil), but that may not work for other peoples' use cases.
map[string]any
m.Set("foo.bar", nil)
I found myself wanting to do something like this
But didn't see any way of doing that without casting back to
map[string]any
and doing it myself. It would be nice to have this. I worked around it by usingm.Set("foo.bar", nil)
, but that may not work for other peoples' use cases.