資源
教程
安裝過程: 用 git 工具下載
go get bitbucket.org/mikespook/go-tour-zh/gotour
其中,在這些目錄下面放置這些對應的解壓文件的。
go-tour-zh : https://bitbucket.org/mikespook/go-tour-zh/gotour
github.com/golang : … 根據報錯信息中的顯示的http github的路徑來下載這些庫。
golang.org/x/net : … github.com/golang/net
golang.org/x/tools : … github.com/golang/tools
然後 cmd 到 go-tour-zh\gotour\ 中執行 go install 。
其中,可能報錯,比如可能出現找不到 包,cannot find package “…”
猜測是缺少了播啊,所以下載對應的package 然後安裝到
比如 : https://github.com/yuin/goldmark 。 用git 或 直接下載zip,然後把zip安裝到對應的文件路徑下就可以了。
這時候,在 GOPATH\bin\ 下面會生成 gotour.exe。
運行gotour.exe:
任何cmd窗口,執行gotour.exe
參考博客
go-tour-zh離線安裝
002_go-tour-zh離線安裝
go tour 之旅離線中文版本
#go源碼包
gwet https://dl.google.com/go/go1.11.4.linux-amd64.tar.gz
#解壓go到 /usr/local/
tar -C /usr/local -xzf go1.11.4.linux-amd64.tar.gz
#導入環境
export PATH=$PATH:/usr/local/go/bin
#下載依賴
go get github.com/golang/net
go get github.com/golang/tools
#分佈式管理工具hg(Mercurial)
sudo apt-get install mercurial
#中文tour下載
go get bitbucket.org/mikespook/go-tour-zh/gotour
# 實在不行還有以下2個地址
https://github.com/inorme/gotour
https://gitee.com/kxmile/gotour