Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
fmt: exhibits strange behaviour when format strings contain spaces #17436
It seems that when spaces are inserted in a format string like %#v, some slightly surprising formatting occurs.
What version of Go are you using (
Note that space is a valid and documented flag character. The docs say leave a space for elided sign in numbers (% d); put spaces between bytes printing strings or slices in hex (% x, % X)".
I think the output shown above is correct, so I'm going to close this.