原创 golang 字符串與int類型轉換

一、字符串轉intfunc Atoi(s string) (int, error) 案例:執行結果:sf@SFdeMacBook-Pro  ~/Documents/project/src/test  go build int_strin