LoginSignup
1
1

More than 5 years have passed since last update.

GolangのインストールからHelloWorldまで

Last updated at Posted at 2018-09-07

公式からパッケージをインストール

インストールされたことを確認

$ go version

HelloWorld

下記のファイルを作成

helloworld.go
package main

import "fmt"

func main() {
  fmt.Printf("hello, world\n")
}

実行

$ go run helloworld.go
hello, world

ビルドして実行

$ go build helloworld.go
$ ./helloworld
hello, world
1
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
1
1