Skip to content

x/website: Tutorial contains stale code/advice (no need to seed rand anymore) #60627

Closed
golang/website
#271
@medkhabt

Description

@medkhabt

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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36

Screenshot

Bildschirmfoto 2023-06-06 um 11 45 42

What did you do?

--

What did you expect to see?

I expect to not see that paragraph. I assumed that there was an init() function for older versions of the code but forgot to change also the paragraph that explains the code.
Or maybe I am missing something about the language, I am new to GO.

What did you see instead?

The paragraph inside the blue border of the screenshot.

Have a great day!

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.website

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions