1、编码编译环境:windows 10;
2、目标代码运行环境:linux arm7l
编译环境设置:
set GOARM=7 set GOARCH=arm set GOOS=linux go build .
3、查看当前go环境参数;
go env