LoginSignup
0
0

More than 5 years have passed since last update.

UbuntuでGO言語はじめました

Posted at

UbuntuでGO言語開発環境を整えました

リファレンス
https://golang.org

VS Codで開発するために下記のExtensionをインストルール
https://marketplace.visualstudio.com/items?itemName=ms-vscode.Go

最新バージョンのgolangをインストール
apt-get golang-1.10

シンボリックリンクを書き換え
ln -s /usr/lib/go-1.10/bin/go /usr/bin/go
ln -s /usr/lib/go-1.10/bin/gofmt /usr/bin/gofmt

golang入っているのでシンボリックリンクを貼るときに、上書きするために-f使った

デバッガの導入

delve

go get -u github.com/derekparker/delve/cmd/dlv

チュートリアル
https://tour.golang.org/welcome/1

Hello Worldを VS Codeのデバッガで表示!

ここからが本番ですね

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0