{"id":4299,"date":"2024-12-24T18:39:59","date_gmt":"2024-12-24T09:39:59","guid":{"rendered":"https:\/\/matoken.org\/blog\/?p=4299"},"modified":"2024-12-24T18:47:15","modified_gmt":"2024-12-24T09:47:15","slug":"go-toolchains","status":"publish","type":"post","link":"https:\/\/matoken.org\/blog\/2024\/12\/24\/go-toolchains\/","title":{"rendered":"go install\u6642\u306b\u52dd\u624b\u306b\u65b0\u3057\u3044go\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u308b?(Go Toolchains)"},"content":{"rendered":"<p><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"48\" height=\"48\" viewBox=\"0 0 24 24\"><rect width=\"24\" height=\"24\" fill=\"none\"\/><path fill=\"currentColor\" d=\"M1.811 10.231c-.047 0-.058-.023-.035-.059l.246-.315c.023-.035.081-.058.128-.058h4.172c.046 0 .058.035.035.07l-.199.303c-.023.036-.082.07-.117.07zM.047 11.306c-.047 0-.059-.023-.035-.058l.245-.316c.023-.035.082-.058.129-.058h5.328c.047 0 .07.035.058.07l-.093.28c-.012.047-.058.07-.105.07zm2.828 1.075c-.047 0-.059-.035-.035-.07l.163-.292c.023-.035.07-.07.117-.07h2.337c.047 0 .07.035.07.082l-.023.28c0 .047-.047.082-.082.082zm12.129-2.36c-.736.187-1.239.327-1.963.514c-.176.046-.187.058-.34-.117c-.174-.199-.303-.327-.548-.444c-.737-.362-1.45-.257-2.115.175c-.795.514-1.204 1.274-1.192 2.22c.011.935.654 1.706 1.577 1.835c.795.105 1.46-.175 1.987-.77c.105-.13.198-.27.315-.434H10.47c-.245 0-.304-.152-.222-.35c.152-.362.432-.97.596-1.274a.32.32 0 0 1 .292-.187h4.253c-.023.316-.023.631-.07.947a5 5 0 0 1-.958 2.29c-.841 1.11-1.94 1.8-3.33 1.986c-1.145.152-2.209-.07-3.143-.77c-.865-.655-1.356-1.52-1.484-2.595c-.152-1.274.222-2.419.993-3.424c.83-1.086 1.928-1.776 3.272-2.02c1.098-.2 2.15-.07 3.096.571c.62.41 1.063.97 1.356 1.648c.07.105.023.164-.117.2m3.868 6.461c-1.064-.024-2.034-.328-2.852-1.029a3.67 3.67 0 0 1-1.262-2.255c-.21-1.32.152-2.489.947-3.529c.853-1.122 1.881-1.706 3.272-1.95c1.192-.21 2.314-.095 3.33.595c.923.63 1.496 1.484 1.648 2.605c.198 1.578-.257 2.863-1.344 3.962c-.771.783-1.718 1.273-2.805 1.495c-.315.06-.63.07-.934.106m2.78-4.72c-.011-.153-.011-.27-.034-.387c-.21-1.157-1.274-1.81-2.384-1.554c-1.087.245-1.788.935-2.045 2.033c-.21.912.234 1.835 1.075 2.21c.643.28 1.285.244 1.905-.07c.923-.48 1.425-1.228 1.484-2.233z\"\/><\/svg><!-- simple-icons:go --><\/p>\n<div class=\"paragraph\">\n<p>Go\u88fd\u306e\u30a2\u30d7\u30ea\u3092go install\u3067\u5c0e\u5165\u3057\u305f\u3068\u3053\u308d\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306ego\u304c\u81ea\u52d5\u7684\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u3066\u4f7f\u308f\u308c\u307e\u3057\u305f\uff0e\u3053\u308c\u306f\u4f55\u3060\u308d\u3046\u3068\u5c11\u3057\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\uff0e<\/p>\n<\/div>\n<p><!--more--><\/p>\n<div class=\"paragraph\">\n<p>go install \u3067nostr client\u306ealgia\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\uff0e\u9014\u4e2d\u3067go 1.23.4\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u3066\u3044\u307e\u3059\uff0e<\/p>\n<\/div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p><a href=\"https:\/\/github.com\/mattn\/algia\">mattn\/algia: A cli application for nostr<\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ go install github.com\/mattn\/algia@latest\ngo: downloading github.com\/mattn\/algia v0.0.84\ngo: github.com\/mattn\/algia@v0.0.84 requires go &gt;= 1.23.0; switching to go1.23.4\ngo: downloading go1.23.4 (linux\/arm) <b class=\"conum\">(1)<\/b>\ngo: downloading github.com\/mdp\/qrterminal\/v3 v3.2.0\ngo: downloading github.com\/nbd-wtf\/go-nostr v0.38.1\ngo: downloading github.com\/urfave\/cli\/v2 v2.27.4\ngo: downloading github.com\/btcsuite\/btcd\/btcec\/v2 v2.3.4\ngo: downloading github.com\/btcsuite\/btcd\/btcutil v1.1.6\ngo: downloading github.com\/gobwas\/httphead v0.1.0\ngo: downloading github.com\/gobwas\/ws v1.4.0\ngo: downloading github.com\/mailru\/easyjson v0.7.7\ngo: downloading github.com\/puzpuzpuz\/xsync\/v3 v3.4.0\ngo: downloading github.com\/tidwall\/gjson v1.18.0\ngo: downloading github.com\/fiatjaf\/eventstore v0.11.0\ngo: downloading golang.org\/x\/exp v0.0.0-20240909161429-701f63a606c0\ngo: downloading github.com\/graph-gophers\/dataloader\/v7 v7.1.0\ngo: downloading rsc.io\/qr v0.2.0\ngo: downloading github.com\/decred\/dcrd\/dcrec\/secp256k1\/v4 v4.3.0\ngo: downloading github.com\/btcsuite\/btcd\/chaincfg\/chainhash v1.1.0\ngo: downloading github.com\/cpuguy83\/go-md2man\/v2 v2.0.5\ngo: downloading github.com\/xrash\/smetrics v0.0.0-20240521201337-686a1a2994c1\ngo: downloading github.com\/gobwas\/pool v0.2.1\ngo: downloading github.com\/josharian\/intern v1.0.0\ngo: downloading github.com\/tidwall\/match v1.1.1\ngo: downloading github.com\/tidwall\/pretty v1.2.1\ngo: downloading github.com\/fiatjaf\/generic-ristretto v0.0.1\ngo: downloading github.com\/decred\/dcrd\/crypto\/blake256 v1.1.0\ngo: downloading github.com\/dustin\/go-humanize v1.0.1\ngo: downloading github.com\/golang\/glog v1.2.2<\/pre>\n<\/div>\n<\/div>\n<div class=\"colist arabic\">\n<ol>\n<li>\n<p>go 1.23.4\u304c\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u3066\u3044\u308b<\/p>\n<\/li>\n<\/ol>\n<\/div>\n<div class=\"paragraph\">\n<p>gup check\u3067\u78ba\u8a8d\u3059\u308b\u3068\u4eca\u56de\u306ealgia\u306fgo1.23.4\u3067build\u3055\u308c\u3066\u3044\u3066\uff0c\u4ed6\u306e\u306fgo1.22.1\u3067\u3059\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ gup check\ncheck binary under $GOPATH\/bin or $GOBIN\n[1\/8] github.com\/mattn\/algia (Already up-to-date: v0.0.84 \/ go1.23.4) <b class=\"conum\">(1)<\/b>\n[2\/8] github.com\/darkhz\/bluetuith (current: v0.2.2, latest: v0.2.3 \/ go1.22.1)\n[3\/8] github.com\/mattn\/bsky (current: v0.0.61, latest: v0.0.67 \/ go1.22.1)\n[4\/8] github.com\/bloznelis\/typioca (current: v0.0.0-20240403160848-1c6a0ac60a1a, latest: v0.0.0-20241028092943-0f1ec70f7d95 \/ go1.22.1)\n[5\/8] github.com\/mikuta0407\/misskey-cli (current: v0.0.0-20230730142608-ab80e8e6583c, latest: v0.3.1 \/ current: go1.19.8, installed: go1.22.1)\n[6\/8] github.com\/nao1215\/gup (Already up-to-date: v0.27.5 \/ go1.22.1)\n[7\/8] github.com\/maaslalani\/nap (Already up-to-date: v0.1.1 \/ go1.22.1)\n[8\/8] github.com\/sqshq\/sampler (Already up-to-date: v1.1.0 \/ go1.22.1)\n\nIf you want to update binaries, run the following command.\n           $ gup update bluetuith bsky typioca misskey-cli<\/pre>\n<\/div>\n<\/div>\n<div class=\"colist arabic\">\n<ol>\n<li>\n<p>algia\u3060\u3051go1.23.4\u304c\u4f7f\u308f\u308c\u3066\u3044\u308b<\/p>\n<\/li>\n<\/ol>\n<\/div>\n<div class=\"paragraph\">\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308bgo\u3092\u78ba\u8a8d\u3059\u308b\u3068go1.22.1\u3067\u3059\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ which go\n\/usr\/bin\/go\n$ go version\ngo version go1.22.1 linux\/arm<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>$GOPATH\u306e\u4e0b\u3092\u898b\u308b\u3068go1.23.4\u304c\u3042\u308a\u307e\u3059\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ ~\/go\/pkg\/mod\/golang.org\/toolchain\\@v0.0.1-go1.23.4.linux-arm\/bin\/go version\ngo version go1.23.4 linux\/arm\n$ du -Hs ~\/go\/pkg\/mod\/golang.org\/toolchain\\@v0.0.1-go1.23.4.linux-arm\n243424  \/home\/matoken\/go\/pkg\/mod\/golang.org\/toolchain@v0.0.1-go1.23.4.linux-arm<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>go.mod\u306e\u3053\u306e\u8fba\u308a\u304c\u52b9\u3044\u3066\u3044\u305d\u3046\u3067\u3059\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"content\">\n<pre>$ head go\/pkg\/mod\/github.com\/mattn\/algia@v0.0.84\/go.mod\nmodule github.com\/mattn\/algia\n\ngo 1.23.0\n\ntoolchain go1.23.1\n\nrequire (\n        github.com\/fatih\/color v1.17.0\n        github.com\/mdp\/qrterminal\/v3 v3.2.0\n        github.com\/nbd-wtf\/go-nostr v0.38.1<\/pre>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p>\u3053\u308c\u306f\u4f55\u3060\u308d\u3046\u3068go toolchain\u3068\u304b\u3067\u691c\u7d22\u3057\u3066\u307f\u308b\u3068go 1.21\u304b\u3089\u306e\u6a5f\u80fd\u3067\u5fc5\u8981\u306a\u30d0\u30fc\u30b8\u30e7\u30f3\u306ego\u3092\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u81ea\u52d5\u7684\u306b\u5fc5\u8981\u306ago\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u4f7f\u3063\u3066\u304f\u308c\u308b\u3088\u3046\u3067\u3059\uff0e\u4fbf\u5229\u3067\u3059\u306d\uff0e<\/p>\n<\/div>\n<div class=\"ulist\">\n<ul>\n<li>\n<p><a href=\"https:\/\/go.dev\/doc\/toolchain\">Go Toolchains &#8211; The Go Programming Language<\/a><\/p>\n<\/li>\n<li>\n<p><a href=\"https:\/\/gocon.jp\/2024\/sessions\/6\/\">Sessions | Go Conference 2024<\/a> \u300cGo1.21\u304b\u3089\u5c0e\u5165\u3055\u308c\u305fGo Toolchain\u306e\u4ed5\u7d44\u307f\u3092\u307e\u308b\u3063\u3068\u89e3\u8aac\u300d<\/p>\n<div class=\"ulist\">\n<ul>\n<li>\n<p><a href=\"https:\/\/speakerdeck.com\/yamatoya\/go1-dot-21karadao-ru-sareta-go-toolchainnoshi-zu-miwomarututojie-shuo\/\">Go1.21\u304b\u3089\u5c0e\u5165\u3055\u308c\u305f Go Toolchain\u306e\u4ed5\u7d44\u307f\u3092\u307e\u308b\u3063\u3068\u89e3\u8aac &#8211; Speaker Deck<\/a><\/p>\n<\/li>\n<\/ul>\n<\/div>\n<\/li>\n<\/ul>\n<\/div>\n<div class=\"paragraph\">\n<p>\u3067\u3082\u5bb9\u91cf\u7d50\u69cb\u98df\u3046\u3057\u4eca\u56de\u306e\u74b0\u5883\u306e\u3088\u3046\u306aRaspberry Pi\u74b0\u5883\u3067\u306f\u3061\u3087\u3063\u3068\u8f9b\u3044\uff0e\u30af\u30ed\u30b9\u30d3\u30eb\u30c9\u3068\u304b\u3059\u308b\u3068\u3044\u3044\u3093\u3067\u3057\u3087\u3046\u304c\u3061\u3087\u3063\u3068\u30c4\u30fc\u30eb\u3092\u8a66\u3059\u3060\u3051\u3060\u3068\u9762\u5012\u2026\u2026\uff0e\u30d3\u30eb\u30c9\u5f8c\u306b\u6383\u9664\u3059\u308b\u611f\u3058\u304c\u3044\u3044\u3093\u3067\u3059\u304b\u306d\uff0e<\/p>\n<\/div>\n<div class=\"listingblock\">\n<div class=\"title\">\u74b0\u5883<\/div>\n<div class=\"content\">\n<pre>$ dpkg-query -W golang-1.19 golang-1.22 golang\ngolang:armhf    2:1.19~1\ngolang-1.19     1.19.8-2\ngolang-1.22     1.22.1-1~bpo12+1\n$ lsb_release -dr\nNo LSB modules are available.\nDescription:    Raspbian GNU\/Linux 12 (bookworm)\nRelease:        12\n$ arch\narmv7l<\/pre>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Go\u88fd\u306e\u30a2\u30d7\u30ea\u3092go install\u3067\u5c0e\u5165\u3057\u305f\u3068\u3053\u308d\u65b0\u3057\u3044\u30d0\u30fc\u30b8\u30e7\u30f3\u306ego\u304c\u81ea\u52d5\u7684\u306b\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u3066\u4f7f\u308f\u308c\u307e\u3057\u305f\uff0e\u3053\u308c\u306f\u4f55\u3060\u308d\u3046\u3068\u5c11\u3057\u8abf\u3079\u3066\u307f\u307e\u3057\u305f\uff0e<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"webmentions_disabled_pings":false,"webmentions_disabled":false,"activitypub_content_warning":null,"activitypub_content_visibility":null,"activitypub_max_image_attachments":4,"activitypub_interaction_policy_quote":"anyone","activitypub_status":"federated","footnotes":""},"categories":[809,6,546],"tags":[682,805],"class_list":["post-4299","post","type-post","status-publish","format-standard","hentry","category-bookworm-raspberry-pi-os","category-linux","category-raspberry-pi-os","tag-go","tag-golang"],"_links":{"self":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/4299","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/comments?post=4299"}],"version-history":[{"count":2,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/4299\/revisions"}],"predecessor-version":[{"id":4301,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/posts\/4299\/revisions\/4301"}],"wp:attachment":[{"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/media?parent=4299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/categories?post=4299"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matoken.org\/blog\/wp-json\/wp\/v2\/tags?post=4299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}