You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The description says:
"By convention, the package name is the same as the last element of the import path. For instance, the "math/rand" package comprises files that begin with the statement package rand."
..but the example is:
fmt.Println("My favorite number is", rand.Intn(10))
..which is not "package rand", just "rand". Because there is nowhere in the example that says "package rand" it's a bit confusing what is trying to be conveyed.
The text was updated successfully, but these errors were encountered:
Context: https://go.dev/tour/basics/1
The description says:
"By convention, the package name is the same as the last element of the import path. For instance, the "math/rand" package comprises files that begin with the statement package rand."
..but the example is:
fmt.Println("My favorite number is", rand.Intn(10))
..which is not "package rand", just "rand". Because there is nowhere in the example that says "package rand" it's a bit confusing what is trying to be conveyed.
The text was updated successfully, but these errors were encountered: