Try using this URL as a Eclipse Software Site:https://raw.githubusercontent.com/GoClipse/goclipse.github.io/0.16.0/releases/java
It should allow you to install 0.16.0 (or a diff version if you change the URL)git
地址:http://stackoverflow.com/questions/39228197/how-install-older-goclipse-version-cannot-install-goclipse-16-1-on-eclipse-4-5github
博導讓我學docker,看看docker源碼,還要學學go語言,想先裝環境試試。網上百度了半天想找個Eclipse插件連接,就沒有一個是成功的,博客全是複製的別人的。最上面的那個是可用的URL。看來仍是須要強大的Google。但願須要在Eclipse安裝插件的朋友方便使用。golang
Try using this URL as a Eclipse Software Site:https://raw.githubusercontent.com/GoClipse/goclipse.github.io/0.16.0/releases/
It should allow you to install 0.16.0 (or a diff version if you change the URL) 地址:http://stackoverflow.com/questions/39228197/how-install-older-goclipse-version-cannot-install-goclipse-16-1-on-eclipse-4-5
第二步:配置bash_profile docker
要注意的是:GOPATH和GOROOT的區別:GOPATH是你的工做目錄,而GOROOT是GO語言的源碼的安裝目錄。macos
第三步,就是須要配置Eclipse的環境bash
一、選擇偏好設置dom
二、先配置好goroot和工做環境eclipse
三、再配置其餘的配置ide
主要前三個 須要按download進行下載。最後一個gofmt在goroot目錄下。
大功告成啦,咱們來跑一個例子:
package main
import (
"fmt" ) func main() { fmt.Println("hello world") }
結果
不過最最最重要的一個,千萬要記住!eclipse的工做目錄必定要在:gopath/src/yourproject裏面,不少人若是不注意,就會遇到「Resource doesn't have a corresponding Go package" 的錯誤。以下圖所示:
-------------原創博客,轉載請註明出處,郵箱yusen.wu08@gmail.com-------歡迎FQ過來交流--------