win10 搭建go开发环境

文章目录

  • 安装go
  • 安装goland
  • 开始第一个go程序
  • 经验提示

主要参考文章:
http://c.biancheng.net/view/3992.html
https://www.cnblogs.com/ghostcakemaker/p/12165935.html
https://www.cnblogs.com/xiyu714/p/9894285.html

安装go

下载地址
版本: go1.14.windows-amd64.msi
安装到D:\Go

安装教程:http://c.biancheng.net/view/3992.html

重点: 设置环境变量
也可以再golond工程里面设置:参考:https://www.cnblogs.com/ghostcakemaker/p/12165935.html

安装goland

下载地址:https://www.jetbrains.com/go/download/other.html
安装教程:http://c.biancheng.net/view/6124.html

开始第一个go程序

参考文章:https://www.cnblogs.com/ghostcakemaker/p/12165935.html

经验提示

1、不要汉化,汉化后,没有Run | Edit Configuration里面配置会没内容显示
2、有用的配置项:
win10 搭建go开发环境_第1张图片
win10 搭建go开发环境_第2张图片
win10 搭建go开发环境_第3张图片

3、在window上可以直接编译linux程序,这个点比较不错

你可能感兴趣的:(go语言)