diff options
Diffstat (limited to 'doc/go_spec.html')
-rw-r--r-- | doc/go_spec.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/go_spec.html b/doc/go_spec.html index 01770395f..4c80f39d4 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -6008,7 +6008,8 @@ in a program. <p> A package with no imports is initialized by assigning initial values to all its package-level variables followed by calling all <code>init</code> -functions in unspecified order. +functions in the order they appear in the source, possibly in multiple files, +as presented to the compiler. If a package has imports, the imported packages are initialized before initializing the package itself. If multiple packages import a package, the imported package will be initialized only once. |