...

/

Packages and Imports

Packages and Imports

This lesson explains how to import different libraries and packages in GO

Packages

Every Go program is made up of packages. Programs start running in package main.

Press + to interact
package main
import "fmt"
func main() {
fmt.Printf("Hello, World!\n")
}

If you are writing an executable code (versus a library), then you need to define a main package and a main() ...

Access this course and 1400+ top-rated courses and projects.