系统相关
首页 > 系统相关> > ubuntu 之 go+/goplus 安装

ubuntu 之 go+/goplus 安装

作者:互联网

目前情况是要安装 goplus/go+ 之前 必须先安装 golang golang下载地址:https://golang.google.cn/dl/ 或者 https://studygolang.com/dl  

安装 golang

1 wget -c https://dl.google.com/go/go1.14.2.linux-amd64.tar.gz -O - | sudo tar -xz -C /usr/local 
2 vim ~/.bashrc 或者 .zshrc
3 export PATH=$PATH:/usr/local/go/bin
4 source ~/.bashrc 或者 .zshrc 
5 go version # 验证 go version go1.14.2 linux/amd64

安装 goplus

1 go env -w GOPROXY=https://goproxy.cn # 国内七牛云代理
2 git clone git@github.com:goplus/gop.git
3 cd gop
4 ./all.bash

vsvode 插件名字:goplus

go+ 文件后缀名字是:gop

go+ 相关命令

 
1 gop run # Run a Go+ program #运行Go+程序
2 gop install # Build Go+ files and install target to GOBIN #编译Go+文件并将目标安装到GOBIN
3 gop build # Build Go+ files #编译Go+文件
4 gop test # Test Go+ packages #测试Go+包
5 gop fmt # Format Go+ packages #格式Go+包
6 gop clean # Clean all Go+ auto generated files #清理所有Go+自动生成的文件
7 gop go # Convert Go+ packages into Go packages #将go+包转换为go

其他

1. Go+官网:https://goplus.org/ 2. Go+ spx demo:https://github.com/goplus/gop/tree/main/tutorial 3. 小游戏demo:https://github.com/goplus/spx/tree/main/tutorial 4. win10搭建go+/goplus:https://zhuanlan.zhihu.com/p/396398360 5. 示例代码解析 https://zhuanlan.zhihu.com/p/399683614 6. Go+1.0 基本语法及特点:https://github.com/goplus/gop 7. 网页和手机都可以点击体验 Go+ 哦:https://play.goplus.org/    

标签:goplus,Go,https,ubuntu,go,com,gop
来源: https://www.cnblogs.com/taotao0805/p/15415442.html