Skip to content

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

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

Set() with key pointing to nonexistent map path#66
hanzei merged 1 commit intostretchr:masterfrom
geseq:MSI-Setter

Conversation

@geseq
Copy link
Collaborator

@geseq geseq commented Apr 13, 2018

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
Copy link
Collaborator

hanzei commented Apr 13, 2018

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

@geseq
Copy link
Collaborator Author

geseq commented Apr 13, 2018

No worries. Take all the time you need.

Copy link
Collaborator

@hanzei hanzei left a comment

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