Last active
August 29, 2015 14:05
-
-
Save vjeantet/1a50aa8c52e7e0c4e470 to your computer and use it in GitHub Desktop.
Named Type problem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
) | |
type counter int | |
func main() { | |
var c counter | |
fmt.Printf("value=%d,type=%T", c, c) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment