Linux下搭建Go语言开发环境

栏目: Go · 发布时间: 7年前

内容简介:版权声明:本文为博主尹成联系QQ77025077,微信18510341407原创文章,欢迎转载侵权不究。 https://blog.csdn.net/yincheng01/article/details/84135527

版权声明:本文为博主尹成联系QQ77025077,微信18510341407原创文章,欢迎转载侵权不究。 https://blog.csdn.net/yincheng01/article/details/84135527

@安装编译器

方案一

下载安装包

解压到特定目录

cd /usr/local
tar -zxvf goxxx.tar.gz

配置PATH

export PATH=$PATH:/usr/local/go/bin

使配置永久生效

sudo gedit /etc/profile
export PATH=$PATH:/usr/local/go/bin
source /etc/profile 或 reboot

方案二

sudo apt install golang-go

@编译HelloWorld

go build hello.go
./hello

@安装GoLand

下载安装包,解压到任意目录

cd ~
tar -zxvf goland-xxx.tar.gz

执行bin目录下的goland.sh

cd ~/golandxxx/bin
./goland.sh

在线激活: http://idea.youbbs.org

配置GOROOT和GOPATH

学院 Go 语言视频主页

https://edu.csdn.net/lecturer/1928

[清华团队带你实战区块链开发]

( https://ke.qq.com/course/344443?tuin=3d17195d )

扫码获取海量视频及源码 QQ群:721929980

Linux下搭建Go语言开发环境

以上所述就是小编给大家介绍的《Linux下搭建Go语言开发环境》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Is Parallel Programming Hard, And, If So, What Can You Do About

Is Parallel Programming Hard, And, If So, What Can You Do About

Paul E. McKenney

The purpose of this book is to help you understand how to program shared-memory parallel machines without risking your sanity.1 By describing the algorithms and designs that have worked well in the pa......一起来看看 《Is Parallel Programming Hard, And, If So, What Can You Do About 》 这本书的介绍吧!

MD5 加密
MD5 加密

MD5 加密工具

SHA 加密
SHA 加密

SHA 加密工具

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具