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

%q formatting verb ought to respect width and precision modifiers #1652

Closed
mark-summerfield opened this issue Mar 31, 2011 · 2 comments
Closed

Comments

@mark-summerfield
Copy link

At present the %q formatting verb ignores width and precision modifiers. It ought to
support them (Russ Cox agrees).

I also think it would be nice if Go would at least complain if a format modifier is used
that isn't valid for the given verb rather than silently ignore it.
@robpike
Copy link
Contributor

robpike commented Mar 31, 2011

Comment 1:

Those are two unrelated points.
%q should honor width and precision.
Please move the other point into a separate issue if you wish to pursue it.

Owner changed to @robpike.

Status changed to Accepted.

@robpike
Copy link
Contributor

robpike commented Mar 31, 2011

Comment 2:

This issue was closed by revision 3907031.

Status changed to Fixed.

@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc unassigned robpike Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants