跨平台/架构编译

使用docker环境编译 使用alpine镜像,alpine系统包含各个系统架构的镜像,alpine使用的是musl libc alpine - Official Image | Docker Hub docker run可以通过--platform=linux/amd64指定镜像的架构(前提是镜像


Goland中使用Makefile

Windows Goland使用Makefile 安装Chocolatey 管理员打开powershell 执行Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityPr