差分
このページの2つのバージョン間の差分を表示します。
両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン 次のリビジョン両方とも次のリビジョン | ||
golang [2023/07/17 07:48] – [プログラムの作成] ともやん | golang [2023/07/17 08:59] – [gotop] ともやん | ||
---|---|---|---|
行 245: | 行 245: | ||
===== Go パッケージのインストール ===== | ===== Go パッケージのインストール ===== | ||
+ | Go パッケージは **go install** コマンドでインストールできる。\\ | ||
- | ==== アップストリームの Go パッケージ | + | ==== gotop ==== |
- | アップストリームプロジェクトは **go get** コマンドでインストールできる。\\ | + | <WRAP # |
- | <code> | + | {{: |
- | $ go get github.com/gorilla/context | + | </ |
- | </code> | + | < |
- | ゴ、ゴリラ? | + | const video = document.getElementById(' |
+ | video.setAttribute(' | ||
+ | video.setAttribute(' | ||
+ | video.addEventListener(" | ||
+ | setTimeout(function() { | ||
+ | video.play(); | ||
+ | }, 1); | ||
+ | }); | ||
+ | </ | ||
+ | [[git> | ||
+ | \\ | ||
+ | Go 1.17 から < | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | <b class=GRN> | ||
+ | </pre></ | ||
+ | <WRAP color_result>< | ||
+ | go: go.mod file not found in current directory or any parent directory. | ||
+ | 'go get' is no longer supported outside a module. | ||
+ | To build and install a command, use 'go install' | ||
+ | like 'go install example.com/ | ||
+ | For more information, | ||
+ | or run 'go help get' or 'go help install' | ||
+ | </ | ||
+ | </ | ||
+ | < | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | <b class=GRN> | ||
+ | </ | ||
+ | <WRAP color_result>< | ||
+ | go: downloading github.com/ | ||
+ | go: downloading github.com/ | ||
+ | go: downloading github.com/ | ||
+ | go: downloading github.com/ | ||
+ | go: downloading github.com/ | ||
+ | go: downloading github.com/ | ||
+ | go: downloading github.com/ | ||
+ | go: downloading github.com/ | ||
+ | go: downloading github.com/ | ||
+ | go: downloading golang.org/ | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | |||
+ | gotop を実行する。\\ | ||
+ | <WRAP color_term> | ||
+ | <WRAP color_command>< | ||
+ | <b class=GRN> | ||
+ | </ | ||
+ | </ | ||
===== 参考文献 ===== | ===== 参考文献 ===== |