GO 文檔啟用

來源:互聯網
上載者:User
這是一個建立於 的文章,其中的資訊可能已經有所發展或是發生改變。

效果如下:

1. 進入 go 的安裝路徑 找到   godoc.exe

我的路徑資訊如所示:

不難看出 我的 godoc.exe 位於 : C:\Go\bin

右擊 "godoc.exe"  -> "發送到" -> 案頭捷徑   (這樣就在你的案頭上建立了一個  godoc.exe 的捷徑) 了

右擊 案頭上的  “godoc.exe - 捷徑” -> 選擇 "屬性" ->選擇 "捷徑" 選項卡(預設就是這個選項卡)  在 "目標(T)"  處填入 下面的命令

C:\Windows\SysWOW64\cmd.exe /c start "Godoc Server http://localhost:6060" "C:\Go\bin\godoc.exe" -http=localhost:6060 -goroot="C:\Go\." && start http://localhost:6060

使用者根據自己的路徑資訊進行修改。

運行方式 修改為 "最小化"

最後點擊 "確定"

 

現在 通過 雙擊 "godoc.exe - 捷徑"  就可以啟動 瀏覽器 啟動 go 的文檔系統了

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.