objx icon indicating copy to clipboard operation
objx copied to clipboard

Go package for dealing with maps, slices, JSON and other data.

Results 11 objx issues
Sort by recently updated
recently updated
newest added

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...

dependencies
go

#### 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...

help wanted

1. to develop
help wanted
technical debt

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....

3. to review

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...

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...

question

I'm keen to use this on Yaml, is this already a feature? I couldn't see a FromYaml call

question

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...