Go files are organized into packages, which group related code and define a namespace; you import other packages to reuse their code and define functions to execute logic.
package main
import "fmt"
func main() {
fmt.Println("Hello, Go")
}
The package declaration names the current file's group, import brings in external code like fmt, and func defines a named block of executable code.