-
Notifications
You must be signed in to change notification settings - Fork 18k
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
fmt: verb override using tags on struct fields. #6115
Labels
Comments
I pretty much only print structs when debugging. Is that what you use it for, too? If so, I don't think this extra mechanism is worth it. Labels changed: added feature, priority-someday, removed priority-triage, go1.2maybe. Owner changed to @robpike. Status changed to Thinking. |
It makes sense to have the tag obey all the verb formatting like the "%" prefix suggested. Going through the fmt source, it looks like it would be reasonable to ignore tags when either the go syntax "%#v" verb is used and any verb other than "v". I've got most of the logic written already, just need to write some tests. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by BeMasher:
The text was updated successfully, but these errors were encountered: