GO语言开发环境搭建笔记
2023-02-18 16:43:42 时间
开始学一门新的语言,开发环境需要好好配置!
环境变量
export GOROOT=/usr/local/go
#export GOBIN=$GOROOT/bin
export GOPKG=$GOROOT/pkg/tool/linux_amd64
# 目标平台,可能是darwin freebsd linux windows
export GOOS=linux
# 目标平台的计算架构
export GOARCH=amd64
export PATH=$PATH:$GOBIN:$GOPKG
export GOPATH=$HOME/golang/lib:GOPATH=$HOME/golang/gpc2p
编辑器
atom
go-plus --- get missing tools
GOPATH
apm config set https-proxy http://10.16.13.18:8080
代理
vim ~/.atom/.apmrc
http-proxy=http://10.16.13.18:8080
https-proxy=http://10.16.13.18:8080
strict-ssl=false
报错找不到golang.org/x/tools
git clone https://github.com/golang/tools golang.org/x/tools
相关文章
- MongoDB从入门到实战之MongoDB简介
- MongoDB安全加固,防止数据库攻击删除勒索威胁
- Docker安装MongoDB并使用Navicat连接
- OCI runtime exec failed: exec failed: unable to start container process: exec: "mongo": executable file not found in $PATH: unknown
- Visual Studio 2022 git error Unable to negotiate with xx.xxx.xxxx port 22: no matching host key type found. Their offer: ssh-rsa
- Unable to negotiate with xx.xxx.xxxx port 22: no matching host key type found. Their offer: ssh-rsa(解决的两种方式)
- 30分钟使用Docsify+Github Pages搭建个人博客
- GitHub git push超过100MB大文件失败(write error: Broken pipe)完美解决
- Go优秀开源项目推荐
- Windows Go 开发环境下载、安装并配置
- Go是一门什么样的语言?
- VS Code使用Git可视化管理源代码详细教程
- Visual Studio使用Git忽略不想上传到远程仓库的文件
- 使用git处理github中提交有冲突的pull request
- Linux CentOS7部署ASP.NET Core应用程序,并配置Nginx反向代理服务器和Supervisor守护服务
- Linux CentOS上安装 MySQL 8.0.16
- Linux系统彻底卸载MySQL数据库
- Git分布式版本控制器常用命令和使用
- Linux常用基本命令
- Linux安装Nginx二-基于源码编译安装