1. https://i6448038.github.io/2017/07/28/GolangDetails/
  2. new(type)不为nil
    fmt.Println(new(int)==nil) # false
    var i *int
    fmt.Println(i==nil) # true

  3. 一个包里可以有多个init函数,多个init函数的调用顺序 https://golang.org/ref/spec#Program_initialization_and_execution
    Golang的坑_第1张图片
  4. 猜猜下面的代码输出为多少?
    package main

    import "fmt"
    import "strconv"
    
    func main() {
        div,_ := strconv.ParseFloat("0", 64)
        a := 37.2-float64(int(3/div))*150
        x:=fmt.Sprintf("%f", a)
        fmt.Println(x)   // 1383505805528216371200.000000
    }