beyondtao / gitalk

0 stars 0 forks source link

golang 中string和int类型相互转换 #19

Open beyondtao opened 3 months ago

beyondtao commented 3 months ago

https://blog.iostao.com/2020/03/go-type-format/

string转成int:

int, err := strconv.Atoi(string)