From 562bccf89e0cc7ca7e62cb1cde50aea6a231ad19 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Wed, 7 Mar 2012 11:57:54 -0500 Subject: [PATCH] doc: update effective_go.tmpl Forgot this half in https://golang.org/cl/5764044 R=gri CC=golang-dev https://golang.org/cl/5770044 --- doc/effective_go.tmpl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/doc/effective_go.tmpl b/doc/effective_go.tmpl index 9a0333dbaf..92620b9c98 100644 --- a/doc/effective_go.tmpl +++ b/doc/effective_go.tmpl @@ -1723,10 +1723,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