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 example code on the get started guide introduces deprecated code:
rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: Programs that call Seed and then expect a specific sequence of results from the global random source (using functions such as Int) can be broken when a dependency changes how much it consumes from the global random source. To avoid such breakages, programs that need a specific result sequence should use NewRand(NewSource(seed)) to obtain a random generator that other packages cannot access. (SA1019)go-staticcheck
The text was updated successfully, but these errors were encountered:
What is the URL of the page with the issue?
https://go.dev/doc/tutorial/random-greeting
What is your user agent?
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36
Screenshot
What did you do?
What did you expect to see?
I expect to see non-deprecated examples.
What did you see instead?
The example code on the get started guide introduces deprecated code:
The text was updated successfully, but these errors were encountered: