// Begin with a capital letter func Hello () { ··· }
See: Exported names
package main // An internal package may be imported only by another package // that is inside the tree rooted at the parent of the internal directory package internal
See: Internal packages
import r "math/rand"
import ( "fmt" r "math/rand" )
r.Intn()
import "fmt" import "math/rand"
import ( "fmt" // gives fmt.Println "math/rand" // gives rand.Intn )
See: Importing