August 2019
Beginner to intermediate
798 pages
17h 2m
English
Go has strict rules about package usage. Therefore, you cannot just include any package you might think that you will need and then not use it afterward.
Look at the following naive program, which is saved as packageNotUsed.go:
package main
import (
"fmt"
"os"
)
func main() {
fmt.Println("Hello there!")
}
Read now
Unlock full access