Jump to content

Go: Difference between revisions

From 太極
Brb (talk | contribs)
Created page with "[https://golang.org/ The Go Programming Language] [https://golang.org/doc/code.html How to Write Go Code] [https://gobyexample.com/hello-world Go by Example: Hello World] <s..."
 
(No difference)

Latest revision as of 09:11, 15 June 2019

The Go Programming Language

How to Write Go Code

Go by Example: Hello World

$ cat hello-world.go
package main
import "fmt"
func main() {
    fmt.Println("hello world")
}

$ go run hello-world.go
hello world
$ go build hello-world.go
$ ./hello-world 
hello world