| 両方とも前のリビジョン 前のリビジョン 次のリビジョン | 前のリビジョン |
| golang [2025/03/06 05:42] – [gotop] ともやん | golang [2025/10/31 23:23] (現在) – [Go のワークスペース (GOPATH 環境変数)] ともやん |
|---|
| ====== Go言語 ====== | ====== Go言語 ====== |
| 本家: [[https://golang.org/|The Go Programming Language]]\\ | <WRAP logo> |
| ソースコード: [[https://github.com/golang/go|golang/go: The Go programming language]]\\ | |
| | |
| <WRAP> | |
| <WRAP v-align_mid zoomimg w180 x1_2> | <WRAP v-align_mid zoomimg w180 x1_2> |
| {{ :golang:go-gopher-svgrepo-com.svg |Go Gopher SVG Vector}}\\ | {{ :golang:go-gopher-svgrepo-com.svg |Go Gopher SVG Vector}}\\ |
| </WRAP> | </WRAP> |
| <WRAP v-align_mid youtube><html> | <WRAP v-align_mid youtube><html> |
| <iframe width="480" height="270" src="https://www.youtube.com/embed/n8F55puGHIs?mute=1&autoplay=1&modestbranding=1&controls=0&rel=0&loop=1" | <iframe width="480" height="270" src="https://www.youtube.com/embed/n8F55puGHIs?mute=1&autoplay=1&modestbranding=1&controls=1&rel=0&loop=1" |
| title="YouTube video player" frameborder="0" | title="YouTube video player" frameborder="0" |
| allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" | allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" |
| </html></WRAP> | </html></WRAP> |
| </WRAP> | </WRAP> |
| | 本家: [[https://golang.org/|The Go Programming Language]]\\ |
| | ソースコード: [[https://github.com/golang/go|golang/go: The Go programming language]]\\ |
| | |
| Go はプログラミング言語の 1 つである。(コンパイラー言語) 2009 年、Google で Robert Griesemer、ロブ・パイク、ケン・トンプソンによって設計された。Go は、静的型付け、C言語の伝統に則ったコンパイル言語、メモリ安全性、ガベージコレクション、構造的型付け、CSP スタイルの並行性などの特徴を持つ。Go のコンパイラ、ツール、およびソースコードは、すべてフリーかつオープンソースである。\\ | Go はプログラミング言語の 1 つである。(コンパイラー言語) 2009 年、Google で Robert Griesemer、ロブ・パイク、ケン・トンプソンによって設計された。Go は、静的型付け、C言語の伝統に則ったコンパイル言語、メモリ安全性、ガベージコレクション、構造的型付け、CSP スタイルの並行性などの特徴を持つ。Go のコンパイラ、ツール、およびソースコードは、すべてフリーかつオープンソースである。\\ |
| \\ | \\ |
| また、軽量スレッディングのための機能、Python のような動的型付け言語のようなプログラミングの容易性、などの特徴もある。Go 処理系としてはコンパイラのみが開発されている。マスコット・キャラクターは Gopher (ホリネズミ)。\\ | また、軽量スレッディングのための機能、Python のような動的型付け言語のようなプログラミングの容易性、などの特徴もある。Go 処理系としてはコンパイラのみが開発されている。マスコット・キャラクターは Gopher (ホリネズミ)。\\ |
| [[https://ja.wikipedia.org/wiki/Go_(%E3%83%97%E3%83%AD%E3%82%B0%E3%83%A9%E3%83%9F%E3%83%B3%E3%82%B0%E8%A8%80%E8%AA%9E)|Go (プログラミング言語) - Wikipedia]] より\\ | [[wwjp>Go (プログラミング言語)|Go (プログラミング言語) - Wikiwand]] より\\ |
| |
| ===== インストール ===== | ===== インストール ===== |
| <WRAP color_result><html><pre> | <WRAP color_result><html><pre> |
| /home/tomoyan/.go | /home/tomoyan/.go |
| | </pre></html></WRAP> |
| | </WRAP> |
| | |
| | ===== 更新 ===== |
| | <WRAP color_term> |
| | <WRAP color_command><html><pre> |
| | <font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">dnf</font> update <font color="#A347BA">-y</font> golang |
| | </pre></html></WRAP> |
| | <WRAP color_result_long><html><pre> |
| | リポジトリの更新を読み込み中: |
| | リポジトリを読み込みました。 |
| | <b>Package </b> <b>Arch </b> <b>Version </b> <b>Repository </b> <b> Size</b> |
| | Upgrading: |
| | <font color="#26A269"> golang </font> x86_64 <b>1.24.9-1.fc42 </b> updates 8.9 MiB |
| | <font color="#7D7D7D"> replacing golang x86_64 1.24.7-1.fc42 <unknown> 8.9 MiB</font> |
| | <font color="#26A269"> golang-bin </font> x86_64 <b>1.24.9-1.fc42 </b> updates 122.1 MiB |
| | <font color="#7D7D7D"> replacing golang-bin x86_64 1.24.7-1.fc42 <unknown> 121.6 MiB</font> |
| | <font color="#26A269"> golang-src </font> noarch <b>1.24.9-1.fc42 </b> updates 79.2 MiB |
| | <font color="#7D7D7D"> replacing golang-src noarch 1.24.7-1.fc42 <unknown> 79.2 MiB</font> |
| | |
| | Transaction Summary: |
| | Upgrading: 3 packages |
| | Replacing: 3 packages |
| | |
| | パッケージサイズ 43 MiB 、ダウンロードサイズ 43 MiB 。 |
| | 完了後、461 KiB のサイズが利用されます(インストール 210 MiB、削除 210 MiB)。 |
| | [1/3] golang-0:1.24.9-1.fc42.x86_64 100% | 153.7 KiB/s | 670.9 KiB | 00m04s |
| | [2/3] golang-src-0:1.24.9-1.fc42.noarch 100% | 306.8 KiB/s | 13.1 MiB | 00m44s |
| | [3/3] golang-bin-0:1.24.9-1.fc42.x86_64 100% | 379.5 KiB/s | 29.4 MiB | 01m19s |
| | ------------------------------------------------------------------------------------------------------------------------- |
| | [3/3] Total 100% | 557.2 KiB/s | 43.2 MiB | 01m19s |
| | トランザクションを実行中 |
| | [1/8] パッケージ ファイルを検証 100% | 5.0 B/s | 3.0 B | 00m01s |
| | [2/8] トランザクションの準備 100% | 1.0 B/s | 6.0 B | 00m05s |
| | [3/8] 更新中 golang-src-0:1.24.9-1.fc42.noarch 100% | 1.7 MiB/s | 80.2 MiB | 00m47s |
| | [4/8] 更新中 golang-bin-0:1.24.9-1.fc42.x86_64 100% | 44.8 MiB/s | 122.1 MiB | 00m03s |
| | [5/8] 更新中 golang-0:1.24.9-1.fc42.x86_64 100% | 24.7 MiB/s | 9.0 MiB | 00m00s |
| | [6/8] 削除中 golang-0:1.24.7-1.fc42.x86_64 100% | 205.0 B/s | 49.0 B | 00m00s |
| | [7/8] 削除中 golang-bin-0:1.24.7-1.fc42.x86_64 100% | 730.0 B/s | 38.0 B | 00m00s |
| | [8/8] 削除中 golang-src-0:1.24.7-1.fc42.noarch 100% | 266.0 B/s | 6.0 KiB | 00m23s |
| | 完了しました! |
| | </pre></html></WRAP> |
| | <WRAP color_command><html><pre> |
| | <font color="#0087FF"><b>$</b></font> <font color="#26A269">go</font> version |
| | </pre></html></WRAP> |
| | <WRAP color_result><html><pre> |
| | go version go1.24.9 linux/amd64 |
| </pre></html></WRAP> | </pre></html></WRAP> |
| </WRAP> | </WRAP> |