In this lecture, we break down a key (and very common) confusion in Go: what is the difference between
package name (what you write to the left of the dot, like
fmt.Println) and
import path (the string inside
import, like
"math/rand"). Using examples from the standard library (
"encoding/json",
"net/http"), we will see why
rand can conflict (for example,
"crypto/rand" and
"math/rand"), and then we will reinforce the idea with a mini-project: StudyBuddy.