From e8d1852d6a46caf5d7a00642dd9abf75b5a28098 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 7 Mar 2012 11:38:39 -0500 Subject: [PATCH] doc: update Effective Go init section Goroutines are no longer excluded from init. Fixes #3232. R=golang-dev, gri CC=golang-dev https://golang.org/cl/5764044 --- doc/effective_go.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/doc/effective_go.html b/doc/effective_go.html index b9e62b6db4..acca1e5e0d 100644 --- a/doc/effective_go.html +++ b/doc/effective_go.html @@ -1761,10 +1761,7 @@ var (

Finally, each source file can define its own niladic init function to set up whatever state is required. (Actually each file can have multiple -init functions.) The only restriction is that, although -goroutines can be launched during initialization, they will not begin -execution until it completes; initialization always runs as a single thread -of execution. +init functions.) And finally means finally: init is called after all the variable declarations in the package have evaluated their initializers, and those are evaluated only after all the imported packages have been -- 2.50.0