Skip to content

Imports

The word use is used to import packages into your program.

use "fmt"

Import paths are the path to the package. They are used to import packages into your program.

use "math/rand"

It can also be written as a grouped import:

use (
"math/rand"
"fmt"
)