-
Notifications
You must be signed in to change notification settings - Fork 78
陳鍾誠 edited this page Mar 1, 2018
·
3 revisions
- 官網 -- A tour of Go (讚!)
- 中文 gitbook : Build Web Application with Golang (讚!)
- 菜鳥教程 - Go 語言
- 安裝 -- http://steventtud.logdown.com/posts/2016/01/09/install-go-in-mac-osx-with-homebrew
$ sudo apt-get install golang-go // 在我電腦上是安裝 go-1.6
...
root@ubuntu-512mb-sgp1-01:~/ccc/go# ls /usr/lib/go-1.6
bin pkg src test VERSION
root@ubuntu-512mb-sgp1-01:~/ccc/go# ls /usr/lib/go-1.6/bin
go gofmt
root@ubuntu-512mb-sgp1-01:~/ccc/go# ls /usr/lib/go-1.6/bin
要安裝更新版,請用下列方式:
root@ubuntu-512mb-sgp1-01:~/ccc/go# go version
-bash: /usr/bin/go: No such file or directory
root@ubuntu-512mb-sgp1-01:~/ccc/go# sudo vim /root/.profile
root@ubuntu-512mb-sgp1-01:~/ccc/go# sudo vim /root/.bashrc
root@ubuntu-512mb-sgp1-01:~/ccc/go# go version
-bash: /usr/bin/go: No such file or directory
root@ubuntu-512mb-sgp1-01:~/ccc/go# sudo vim /root/.profile
root@ubuntu-512mb-sgp1-01:~/ccc/go# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
root@ubuntu-512mb-sgp1-01:~/ccc/go# sudo vim /root/.profile
root@ubuntu-512mb-sgp1-01:~/ccc/go# source ~/.profile
root@ubuntu-512mb-sgp1-01:~/ccc/go# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/local/go/bin
root@ubuntu-512mb-sgp1-01:~/ccc/go# go
Go is a tool for managing Go source code.
Usage:
go command [arguments]
root@ubuntu-512mb-sgp1-01:~/ccc/go# vim ~/.profile
root@ubuntu-512mb-sgp1-01:~/ccc/go# source ~/.profile
root@ubuntu-512mb-sgp1-01:~/ccc/go# echo $GOPATH
/root/ccc/go
- meta: WebAssembly ("wasm") support -- https://github.com/golang/go/issues/18892
- 目前看來,短期內 go 沒有支持 webassembly 的計畫