Skip to content

query: honour formatting options in interface slices - #196

Open
yuefdev wants to merge 1 commit into
google:masterfrom
yuefdev:fix/interface-slice-format-options-sol
Open

yuefdev wants to merge 1 commit into
google:masterfrom
yuefdev:fix/interface-slice-format-options-sol

Conversation

@yuefdev

@yuefdev yuefdev commented Oct 18, 2026

Copy link
Copy Markdown

Hi! Boolean and time values inside []interface{} bypass formatting options that work for the corresponding typed slices. A space,int boolean slice becomes true false, and time values ignore layout.

Unwrap non-nil interfaces alongside pointers in valueString. Both new cases failed before the fix; full tests, go vet ./..., golint and gofmt pass on Windows/Go 1.27.

Fixes #195.

@google-cla

google-cla Bot commented Oct 18, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Encoding options are ignored for interface-valued slice elements

1 participant