main.go
package main import "fmt" func main() { fmt.Println("Hello, world!") }
執行
$ go build main.go $ file main main: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, not stripped $ ./main Hello, world!