-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.go
75 lines (64 loc) · 1.13 KB
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// main文件
// author: baoqiang
// time: 2019/2/10 下午8:51
package main
import (
"fmt"
"github.com/githubao/xiao-gopro/ch08"
"math"
"strconv"
"github.com/githubao/xiao-gopro/ch02/tempconv"
)
// 2-2-5-6-5
func main() {
//RunCode()
//RunMath()
//ch03.RunBasename2()
//ch03.RunComma()
//ch04.Dedup()
//ch04.CountChar()
//ch05.RunVisit()
//ch05.RunOutline()
//ch05.RunVisit2()
//ch05.RunWaitfor()
//ch05.RunOutline2()
//ch05.RunCrawl()
//ch05.RunTitle()
//ch05.RunTitle2()
//ch05.RunFetch()
//ch05.RunTitle3()
//ch07.RunCelsiusFlag()
//ch07.RunSleep()
//ch07.RunSurface()
//ch08.RunSpinner()
//ch08.RunClient2()
//ch08.RunCrawl3()
//ch08.Countdown3()
//ch08.Du2()
//ch08.Du3()
//ch08.Du4()
ch08.RunChat()
}
func RunMath() {
var max uint64 = math.MaxUint64
//// int32
//var max2 int32 = int32(max + 1)
//
//fmt.Println(max)
//fmt.Println(max2)
limit, _ := strconv.ParseInt(fmt.Sprintf("%d", max), 10, 32)
if limit <= 0 {
limit = 5000
}
// 2147483647
//-2147483648
//-2147483644
var max2 = int32(limit + 1)
fmt.Println(limit)
fmt.Println(max2)
}
func RunCode() {
if true {
tempconv.TempconvGo()
}
}