3 ms·
Would't you expect either "it's 84" or "it's a(n) int|decimal|other_type"? I figured they ment to do the latter, since the next print function outputs: "it's a
by NKCSS 13y ago
Would't you expect either "it's 84" or "it's a(n) int|decimal|other_type"?
I figured they ment to do the latter, since the next print function outputs: "it's a string".
- mseepgood 13y agoSince c is a chan int it can only be an int, no other type. You could directly write fmt.Println("it's an int").