naughty-ghost / hello-world-go

go practice

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-helloworld

Ubuntu にGoをインストール

https://github.com/golang/go/wiki/Ubuntu UbuntuのようなDebianベースのシステムには他にもいくつかのオプションがあります。これらのパッケージはGoプロジェクトによって作成されたものではなく、サポートされていませんが、役立つ場合があります。
最新のバージョンに更新します。

sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt update

インストールします。

sudo apt install golang

バージョン確認。

go version

Projectの作成

  1. プロジェクトフォルダを作成します。
  2. go mod init "モジュール名"を実行します。

About

go practice