go语言string转int的方法:首先创建一个go示例文件;然后通过“int, err := strconv.Atoi(string)”方法将string转int即可。
本文环境:Windows7系统、Go1.11.2版,本文适用于所有品牌的电脑。