タグ

ブックマーク / go.dev (1)

  • Organizing Go code

    Organizing Go code David Crawshaw Packages 2 Go programs are made up of packages All Go source is part of a package. Every file begins with a package statement. Programs start in package main. package main import "fmt" func main() { fmt.Println("Hello, world!") } For very small programs, main is the only package you need to write. The hello world program imports package fmt. The function Println i

    pasela
    pasela 2016/04/10
  • 1