Skip to content

Set: unwrap nested *Json so Get can traverse them - #96

Open
team-humaki wants to merge 1 commit into
bitly:masterfrom
team-humaki:set-unwrap-json
Open

team-humaki wants to merge 1 commit into
bitly:masterfrom
team-humaki:set-unwrap-json

Conversation

@team-humaki

Copy link
Copy Markdown

Set and SetPath stored a *Json wrapper in the map. Get then wrapped that value again, so nested Get/Map failed unless callers passed .Interface().

Unwrap *Json / Json to the payload (nil pointer stays nil). Same as passing .Interface().

Fixes #95

@qodo-for-bitly

Copy link
Copy Markdown

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Great, no issues found!

Qodo reviewed your code and found no material issues that require review
Tip of the day
💡 Did you know, you can reply 'qodo' on any finding to push back, ask questions, or dig deeper

More tips ↗ | Customize Qodo ↗ | Qodo docs ↗


Powered by Qodo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Issue in Set when value is a *simple.Json

1 participant