LoginSignup
0
0

More than 5 years have passed since last update.

MacでGo言語を読むための環境整えた

Posted at

Motivation

  • Dockerやがgoで書かれているため
  • マイクロサービスのデバッグのために分散トレースツールを探したところ jaegerがおすすめ!みたいな記事を読み、お前もgoかとなったため

環境

OS: macOS High Sierra

Goのインストール

homebrew先生は偉大ですね

brew install go

エディタ Visual Studio Code(VS Code)のインストール

https://code.visualstudio.com/download
ここから持ってくるだけ。

Goのための拡張機能のインストール

VS Codeをひらいて、下記のようにGoの拡張をインストール

Screen Shot 2018-05-17 at 19.18.03.png

Hello Go言語!

hello.go
package main

import "fmt"

func main() {
  fmt.Printf("Hello Go言語!\n")
}

Goのデバッグツールのインストール

Goのデバッグツール delveを下記を参考にインストール

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

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