]> Cypherpunks repositories - gostls13.git/commit
spec: allow imported packages named main
authorRuss Cox <rsc@golang.org>
Thu, 3 Feb 2011 18:40:51 +0000 (13:40 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 3 Feb 2011 18:40:51 +0000 (13:40 -0500)
commita6736cae30a707794db3d418c75aec2a2554b1e5
treee56f80ecb2ecb30f52b443ae8283acc751b36c38
parent364cb831f725dea61738171003600c76950e5448
spec: allow imported packages named main

Prior to this CL, there were two requirements about the
package name main.

1. The package that sits at the root of the import graph
   (the one where program execution begins)
   must be named main.

2. No other package in the program can be named main.

This CL only removes requirement #2, which can be done
without changing any other Go documentation.

The new wording and formatting is such that removing
requirement #1 can be done by deleting a single line,
but making that change is explicitly outside the scope
of this CL, because it would require changes to other
documentation at the same time.

R=gri, r, gri1
CC=golang-dev
https://golang.org/cl/4126053
doc/go_spec.html