《Go Web编程》笔者是基于unix下讲述的,作为入门练手,我选择在windows下开发,全程按照目录进行...
一、安装
windows下需要安装MinGW,通过MinGW安装gcc支持CGO编译。
MinGw下载地址:https://sourceforge.net/projects/mingw/files/Installer/
Go64位下载地址:https://studygolang.com/dl/golang/go1.9.2.windows-amd64.msi
下好如图:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
MinGW安装步骤:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Go安装步骤:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
设置系统环境变量
新增以下两个:
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
检测安装:
至此,windows下golang安装和环境配置完成~