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
go 1.6 (tip)
https://play.golang.org/p/2Uj0ZHSSLr
package main import ( "fmt" ) func main() { fmt.Printf("|%12.8v|\n", (*int)(nil)) fmt.Printf("|%12.8v|\n", nil) fmt.Printf("|%12.8v|\n", new(int)) }
Output:
|<nil>| | <nil>| | 0x10434130|
would have expected padding also applies to (*int)(nil) as does with a non nil pointer.
The text was updated successfully, but these errors were encountered:
CL https://golang.org/cl/20371 mentions this issue.
Sorry, something went wrong.
8e23156
No branches or pull requests
go 1.6 (tip)
https://play.golang.org/p/2Uj0ZHSSLr
Output:
would have expected padding also applies to (*int)(nil) as does with a non nil pointer.
The text was updated successfully, but these errors were encountered: