objx
objx copied to clipboard
Go package for dealing with maps, slices, JSON and other data.
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.7.1 to 1.8.0. Commits 181cea6 impr: CallerInfo should print full paths to the terminal (#1201) cf1284f Allow mock expectations to be ordered (#1106) 66eef0e fix: assert.MapSubset (or...
#### Summary Fix a minor typo in the Taskfile.yml Super minor change and you could do it yourself - just found it while searching for something else in one of...
I don't have the time to maintain this library any longer. Are there people interested in maintaining this library? The main tasks for the near future is to revisit the...
objx requires github.com/stretchr/testify v1.7.1 github.com/stretchr/testify requires objx v0.4.0 Would be cool if it could be avoided. No other reason in particular.
#### Summary This is a rewrite of the accessor code to fix a lot of issues with access to arrays. I added some tests that were failing bevor this rewrite....
I found myself wanting to do something like this ```go 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...
help
this is my code: func main() { data := map[string]interface{}{ "name": "Alice", "age": 30, "hobbies": []string{ "reading", "swimming", "running", }, } obj := objx.Map(data) obj = obj.Set("hobbies[0]", "coding") fmt.Println("after set...
I'm keen to use this on Yaml, is this already a feature? I couldn't see a FromYaml call
Hi, objx doesn't make a distinction between keys not existing and keys set to nil: https://go.dev/play/p/UAcl_8eT_BI Is there an existing way to make the distinction that I've missed? Otherwise I'll...