Skip to content

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

Merged
hanzei merged 1 commit into
stretchr:masterfrom
geseq:MSI-Setter
Apr 26, 2018
Merged

hanzei merged 1 commit into
stretchr:masterfrom
geseq:MSI-Setter

Conversation

@geseq

@geseq geseq commented Apr 13, 2018

Copy link
Copy Markdown
Collaborator

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
hanzei self-requested a review April 13, 2018 13:45
@hanzei

hanzei commented Apr 13, 2018

Copy link
Copy Markdown
Collaborator

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

@geseq

geseq commented Apr 13, 2018

Copy link
Copy Markdown
Collaborator Author

No worries. Take all the time you need.

@hanzei hanzei left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your work!

@hanzei hanzei self-assigned this Apr 26, 2018
@hanzei hanzei added this to the v0.2 milestone Apr 26, 2018
@hanzei
hanzei merged commit 2b6f327 into stretchr:master Apr 26, 2018
@hanzei hanzei changed the title FEATURE: Set() with key pointing to nonexistent map path Set() with key pointing to nonexistent map path Apr 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants