Created
February 26, 2017 11:11
-
-
Save l-vitaly/a00fb64e586b5bf88f5af07abe362ab9 to your computer and use it in GitHub Desktop.
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
func FormatMyValue(i int) string { | |
return fmt.Sprintf(“there are %d my value”, i) | |
} | |
func main() { | |
n := TypicalPhlegmaticPerson | |
fmt.Println(FormatMyValue(n)) | |
} | |
// output: | |
// cannot use TypicalPhlegmaticPerson (type TemperamentЕype) as type int in argument to FormatMyValue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment