golang

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
golang [2023/07/17 08:52] – [gotop] ともやんgolang [2023/07/17 09:18] (現在) – [Go のワークスペース (GOPATH 環境変数)] ともやん
行 141: 行 141:
 </WRAP> </WRAP>
  
-変更するには以下のように設定する。\\+Go でインストールしたコマンドを使用するには <html><code>$(go env GOPATH)/bin</code></html> を PATH に追加する。\\ 
 +<WRAP color_term> 
 +<WRAP color_command><html><pre> 
 +<b class=GRN>$</b> <b class=HIY>mkdir</b> -p ~/go 
 +<b class=GRN>$</b> <b class=HIY>echo</b> 'export GOPATH=$(go env GOPATH)' >> $HOME/.bashrc 
 +<b class=GRN>$</b> <b class=HIY>echo</b> 'export PATH=$PATH:$(go env GOPATH)/bin' >> $HOME/.bashrc 
 +<b class=GRN>$</b> <b class=HIY>source</b> ~/.bashrc 
 +<b class=GRN>$</b> <b class=HIY>echo</b> $PATH 
 +</pre></html></WRAP> 
 +<WRAP color_result><html><pre> 
 +/home/tomoyan/go/bin: ... 
 +</pre></html></WRAP> 
 +<WRAP color_command><html><pre> 
 +<b class=GRN>$</b> <b class=HIY>echo</b> $GOPATH 
 +</pre></html></WRAP> 
 +<WRAP color_result><html><pre> 
 +/home/tomoyan/go 
 +</pre></html></WRAP> 
 +</WRAP> 
 + 
 +GOPATH を変更するには以下のように設定する。\\
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
行 249: 行 269:
 ==== gotop ==== ==== gotop ====
 <WRAP #gotop_video> <WRAP #gotop_video>
-{{:golang:gotop_001.mp4?560x315|gotop}}\\+{{:golang:gotop_001.mp4?550x330|gotop}}\\
 </WRAP> </WRAP>
 <html><script> <html><script>
  • golang.1689551571.txt.gz
  • 最終更新: 2023/07/17 08:52
  • by ともやん