Repository navigation
Conversation
hanzei
requested changes
Oct 30, 2026
hanzei
left a comment
Collaborator
There was a problem hiding this comment.
Thanks!
Can you please explain why URLValuesSliceKeySuffix needs to be exported? What value does it add for callers?
Author
|
Hi @hanzei, thanks for the review! The motivation for adding the
That being said, if you prefer keeping the public API surface minimal and not exposing the getter, I am more than happy to remove Let me know what you prefer and I can update the branch accordingly. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Clean
[]map[any]anyslices before JSON encoding:cleanUp(v any)previously supported[]any,[]map[string]any,[]Map, andmap[any]any, but omitted[]map[any]any(slices of interface maps commonly produced by YAML unmarshalers or dynamic data).[]anyin Go type switches,[]map[any]anyfell through todefault: return v, resulting injson: unsupported type: map[interface {}]interface {}when callingJSON()orBase64().cleanUpInterfaceMapArray(in []map[any]any) []Mapand registeredcase []map[any]any:incleanUp.Add
URLValuesSliceKeySuffixgetter:conversions.gopreviously referenced an exportedURLValuesSliceKeySuffixvariable, which was replaced by an unexported variable andSetURLValuesSliceKeySuffix(s string).URLValuesSliceKeySuffix() stringto allow callers and tests to inspect and safely restore previous suffixes without hardcoding default constants.Tests:
[]map[any]anyinconversions_nil_test.goandconversions_test.go.URLValuesSliceKeySuffix()getter alongsideSetURLValuesSliceKeySuffix.go test -v ./...).