You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
369 B
Plaintext
18 lines
369 B
Plaintext
// file: hello.go
|
|
// to install go:
|
|
// download go from https://golang.org/dl/
|
|
// extract it somewhere (say to $HOME/go1.X)
|
|
// export GOROOT=$HOME/go1.X
|
|
// export PATH=$PATH:$GOROOT/bin
|
|
// to compile: go build hello.go
|
|
// to run: go run hello.go
|
|
// or ./hello
|
|
|
|
package main
|
|
|
|
import "fmt"
|
|
|
|
func main() {
|
|
fmt.Println("Hello Go")
|
|
}
|