From a6736cae30a707794db3d418c75aec2a2554b1e5 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 3 Feb 2011 13:40:51 -0500 Subject: [PATCH] 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 | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index 4e5d9c639b..a861f0cbf6 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -1,5 +1,5 @@ - +