1
0

More than 1 year has passed since last update.

[Go] ハロー ワールド

Posted at

install

code

package main

import "fmt"

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

package

コードの先頭では、このファイルに記述するコードがどのパッケージに所属するかを宣言する

import

fmt というパッケージを import する

func

func を使い、 main という function を宣言する

command

go run main.go

Reference

1
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
1
0