记录: macos 编译linux arm下的: CGO_ENABLED=0 GOOS=linux GOARCH=arm go build xxx.go 感谢博主: https://blog.csdn.net/hx7013/article/details/91489642