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
Add an init function to seed the rand package with the current time. Go executes init functions automatically at program startup, after global variables have been initialized. For more about init functions, see Effective Go.
What is the URL of the page with the issue?
https://go.dev/doc/tutorial/random-greeting
What is your user agent?
Firefox
Screenshot
Add an init function to seed the rand package with the current time. Go executes init functions automatically at program startup, after global variables have been initialized. For more about init functions, see Effective Go.
What did you do?
Perform the tutorial :)
What did you expect to see?
Descriptions matching the code.
What did you see instead?
Reference to old "init" code, which I guess got removed after Go 1.20, when not needed anymore.
https://pkg.go.dev/math/rand#Seed
The text was updated successfully, but these errors were encountered: