Keyword

Go package keyword

Identifies the package to which a source file belongs. A command uses package main and a parameterless, resultless main function; ordinary packages use other names. The package clause is not a normal scoped declaration. Example prints launch.

Formal Syntax & Structure

go syntaxgo
package Name

Working Example

Example Snippetgo
package main
import "fmt"
func main() {  fmt.Println("launch")}
Go Reference