LoginSignup
0
1

More than 5 years have passed since last update.

Go言語環境構築メモ

Last updated at Posted at 2018-10-25

Go言語導入

Golangの特徴
Go言語入門 1回 (パッケージ編)A Tour Of Go
Go言語入門 2回 (関数,変数編)A Tour Of Go)A Tour Of Go
Go言語入門 3回 (for文などの基本記述編)A Tour Of Go
Go言語入門 4回 (ポインター編)A Tour Of Go
Go言語入門 5回 (Array,slices,Map)A Tour Of Go

Goのインストール

brew install go

動作確認用コード(hello world 出力)

helloworld.go
package main

import "fmt"

func main() {
    fmt.Println("Hello World!")
}

コンパイル

go build helloworld.go

コンパイル後に実行用ファイルが生成される

実行

./helloworld.go
0
1
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
1