Golang:修订间差异
跳到导航
跳到搜索
此页面具有访问限制。如果您看见此消息,则说明您没有权限访问此页面。
无编辑摘要 |
无编辑摘要 |
||
(未显示同一用户的2个中间版本) | |||
第6行: | 第6行: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
sudo add-apt-repository ppa:longsleep/golang-backports; sudo apt update; sudo apt install golang-go; sudo apt clean | sudo add-apt-repository -y ppa:longsleep/golang-backports; sudo apt update; sudo apt install golang-go; sudo apt clean | ||
</syntaxhighlight> | </syntaxhighlight> | ||
第12行: | 第12行: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
sudo apt update; sudo apt install golang; sudo apt clean | sudo apt update; sudo apt install -y golang; sudo apt clean | ||
</syntaxhighlight> | </syntaxhighlight> | ||
第22行: | 第22行: | ||
* {{Official|https://go.dev/}} {{en}} | * {{Official|https://go.dev/}} {{en}} | ||
[[Category:軟體]] |
2024年1月13日 (六) 07:33的最新版本
Golang是一个程式语言。
安装
目前Golang官方建议的方式中,使用PPA安装的方式[1]:
sudo add-apt-repository -y ppa:longsleep/golang-backports; sudo apt update; sudo apt install golang-go; sudo apt clean
如果可以接受旧版的Golang可以直接安装系统的版本:
sudo apt update; sudo apt install -y golang; sudo apt clean
参考文献
- ↑ Go Wiki: Ubuntu - The Go Programming Language. [2024-01-13] (English).
外部链接
- 官方网站 (英文)