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

Remove explanation for init. #237

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions _content/doc/tutorial/random-greeting.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,6 @@
>
to generate a random number for selecting an item from the slice.
</li>
<li>
Add an <code>init</code> function to seed the <code>rand</code> package
with the current time. Go executes <code>init</code> functions
automatically at program startup, after global variables have been
initialized. For more about <code>init</code> functions, see
<a href="/doc/effective_go.html#init">Effective Go</a>.
</li>
<li>
In <code>Hello</code>, call the <code>randomFormat</code> function to
get a format for the message you'll return, then use the format and
Expand Down