Andrew Gerrand | 6cf2ff0 | 2013-01-23 17:39:23 +1100 | [diff] [blame] | 1 | package main |
2 | |||||
3 | import ( | ||||
4 | "fmt" | ||||
5 | "math/cmplx" | ||||
6 | ) | ||||
7 | |||||
8 | var ( | ||||
9 | ToBe bool = false | ||||
10 | MaxInt uint64 = 1<<64 - 1 | ||||
11 | z complex128 = cmplx.Sqrt(-5 + 12i) | ||||
12 | ) | ||||
13 | |||||
14 | func main() { | ||||
15 | const f = "%T(%v)\n" | ||||
16 | fmt.Printf(f, ToBe, ToBe) | ||||
17 | fmt.Printf(f, MaxInt, MaxInt) | ||||
18 | fmt.Printf(f, z, z) | ||||
19 | } |