Skip to content

Instantly share code, notes, and snippets.

@l-vitaly
Created February 26, 2017 11:11
Show Gist options
  • Save l-vitaly/a00fb64e586b5bf88f5af07abe362ab9 to your computer and use it in GitHub Desktop.
Save l-vitaly/a00fb64e586b5bf88f5af07abe362ab9 to your computer and use it in GitHub Desktop.
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