Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 26, 2018
Merged

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

merged 1 commit into from
Apr 26, 2018

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