We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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.Sprintf("%[1]v %[2]03d %[3]03d", "Text", 90, 80) should print "Text 090 080" but instead prints "Text %!d(BADINDEX) %!d(BADINDEX)"
fmt.Sprintf("%[1]v %[2]03d %[3]03d", "Text", 90, 80)
Tested on Go 1.4
Am I doing something wrong?
The text was updated successfully, but these errors were encountered:
The index goes next to the verb: fmt.Sprintf("%[1]v %03[2]d %03[3]d", "Text", 90, 80). http://play.golang.org/p/_bGrb91xTJ
fmt.Sprintf("%[1]v %03[2]d %03[3]d", "Text", 90, 80)
Sorry, something went wrong.
Thanks, Josh!
Sent from my iPhone
On 11/12/2014, at 23:13, Josh Bleecher Snyder notifications@github.com wrote: The index goes next to the verb: fmt.Sprintf("%[1]v %03[2]d %03[3]d", "Text", 90, 80). http://play.golang.org/p/_bGrb91xTJ — Reply to this email directly or view it on GitHub.
On 11/12/2014, at 23:13, Josh Bleecher Snyder notifications@github.com wrote:
— Reply to this email directly or view it on GitHub.
No branches or pull requests
fmt.Sprintf("%[1]v %[2]03d %[3]03d", "Text", 90, 80)
should print "Text 090 080" but instead prints "Text %!d(BADINDEX) %!d(BADINDEX)"Tested on Go 1.4
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: