Source file
test/print.go
1
2
3
4
5
6
7
8
9
10
11 package main
12
13 func main() {
14 println((interface{})(nil))
15 println((interface {
16 f()
17 })(nil))
18 println((map[int]int)(nil))
19 println(([]int)(nil))
20 println(int64(-7))
21 println(uint64(7))
22 println(uint32(7))
23 println(uint16(7))
24 println(uint8(7))
25 println(uint(7))
26 println(uintptr(7))
27 println(8.0)
28 println(complex(9.0, 10.0))
29 println(true)
30 println(false)
31 println("hello")
32 println("one", "two")
33
34
35 defer println((interface{})(nil))
36 defer println((interface {
37 f()
38 })(nil))
39 defer println((map[int]int)(nil))
40 defer println(([]int)(nil))
41 defer println(int64(-11))
42 defer println(uint64(12))
43 defer println(uint32(12))
44 defer println(uint16(12))
45 defer println(uint8(12))
46 defer println(uint(12))
47 defer println(uintptr(12))
48 defer println(13.0)
49 defer println(complex(14.0, 15.0))
50 defer println(true)
51 defer println(false)
52 defer println("hello")
53 defer println("one", "two")
54 }
55
View as plain text