ãã®è¨äºã«ã¤ãã¦
æ¥æ¬èªçã®Â A Tour Of Go ã«è¨è¿°ã®ããéããä¸è¨ã®ã³ãã³ãã§ãã¥ã¼ããªã¢ã«ãå®è¡ãããã¨ããã¨ããã
go tool tour
Â
ä¸è¨ã®ã¨ã©ã¼ã¨ãªãããã®ã¨ãã®å¯¾å¿ã¡ã¢ã§ãã
go tool tour
go: no such tool "tour"
Â
対å¿å 容
åãã¼ã¸å ã«ä¸è¨ã®æåã¤ã³ã¹ãã¼ã«ã®è¨è¼ããã£ãã®ã§ãã¾ãã¯ããã試ãã¦ã¿ãã
ä¸è¨ã®ã³ãã³ãã®å®è¡ã«åé¡ãããå ´åã¯æåã§ãã®ãã¢ã¼ãã¤ã³ã¹ãã¼ã«ãã¦å®è¡ã§ãã¾ã:
go get github.com/atotto/go-tour-jp/gotour gotour
Â
ããã¨ä»åº¦ã¯ä¸è¨ã®ã¨ã©ã¼ã
go get github.com/atotto/go-tour-jp/gotour
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' with a version,
    like 'go install example.com/cmd@latest'
    For more information, see https://golang.org/doc/go-get-install-deprecation
    or run 'go help get' or 'go help install'.
Â
go install ã使ãã¨ã®ãã¨ã§ããããexample.com/cmd@latestãã®é¨åã«ä½ãæå®ããã°è¯ããããããã
è±èªçã® A Tour Of Go ã«ã¯ä¸è¨ãè¨è¼ããã¦ããã®ã§ããããå®è¡ãã¦ã¿ã¾ããã
go install golang.org/x/website/tour@latest
Â
ããã ã¨ãã¾ããã¦ã³ãã¼ããããã«ã¬ã³ããã©ã«ãã«ãgoããã©ã«ãããã¦ã³ãã¼ãããã
ãã®ä¸ã® bin ãã©ã«ãã« tour ã¨ããå®è¡å¯è½ãã¡ã¤ã«ãå ¥ã£ã¦ããã®ã§ã
ãããå®è¡ãããã¨ã§ãã©ã¦ã¶ããã¢ã¯ã»ã¹ã§ããããã«ãªãããã§ãã
Â
./tour
2024/01/01 20:26:13 Serving content from /root/go/pkg/mod/golang.org/x/website/[email protected]
2024/01/01 20:26:13 Please open your web browser and visit http://127.0.0.1:3999
2024/01/01 20:26:25 accepting connection from: 127.0.0.1:47806
Â
試ãã«ãhttp://127.0.0.1:3999/ãã«ã¢ã¯ã»ã¹ã
ãã¥ã¼ããªã¢ã«ãã§ããããã«ãªã£ããã
Â
åèæ å ±
macã§a tour of goããã¼ã«ã«ã§å®è¡ããã¨ãã«è©°ã¾ã£ã #Mac - Qiita