golang

差分

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

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
golang [2023/07/17 08:23] ともやん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>
行 248: 行 268:
  
 ==== gotop ==== ==== gotop ====
 +<WRAP #gotop_video>
 +{{:golang:gotop_001.mp4?550x330|gotop}}\\
 +</WRAP>
 +<html><script>
 +  const video = document.getElementById('gotop_video').getElementsByTagName('video')[0];
 +  video.setAttribute('autoPlay','true');
 +  video.setAttribute('loop','true');
 +  video.addEventListener("canplay", function() {
 +    setTimeout(function() {
 +      video.play();
 +    }, 1);
 +  });
 +</script></html>
 [[git>cjbassi/gotop|cjbassi/gotop: A terminal based graphical activity monitor inspired by gtop and vtop]]\\ [[git>cjbassi/gotop|cjbassi/gotop: A terminal based graphical activity monitor inspired by gtop and vtop]]\\
 \\ \\
  • golang.1689549790.txt.gz
  • 最終更新: 2023/07/17 08:23
  • by ともやん