Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/website: #59808

Closed
uguremirmustafa opened this issue Apr 24, 2023 · 1 comment
Closed

x/website: #59808

uguremirmustafa opened this issue Apr 24, 2023 · 1 comment

Comments

@uguremirmustafa
Copy link

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

image
image

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:

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

@gopherbot gopherbot added this to the Unreleased milestone Apr 24, 2023
@seankhliao
Copy link
Member

Duplicate of #58958

@seankhliao seankhliao marked this as a duplicate of #58958 Apr 24, 2023
@seankhliao seankhliao closed this as not planned Won't fix, can't repro, duplicate, stale Apr 24, 2023
@golang golang locked and limited conversation to collaborators Apr 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants