_content/doc/tutorial: remove mention of init function

the init function is removed from the code example: f7341273fe
This commit is contained in:
tcdsv 2023-06-29 14:09:49 +03:00 коммит произвёл GitHub
Родитель ef4c8eb0da
Коммит 012feea9eb
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 0 добавлений и 7 удалений

Просмотреть файл

@ -91,13 +91,6 @@ func randomFormat() string {
>
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