mirror of
https://github.com/golang/go
synced 2024-11-24 18:10:02 -07:00
code.html: update to reflect that package names need not be unique
Fixes #1507. R=golang-dev, ehog.hedge, rsc CC=golang-dev https://golang.org/cl/4160049
This commit is contained in:
parent
888ab02228
commit
bab5536af6
@ -160,9 +160,9 @@ is the package's default name for imports.
|
||||
Go's convention is that the package name is the last element of the
|
||||
import path: the package imported as <code>"crypto/rot13"</code>
|
||||
should be named <code>rot13</code>.
|
||||
At the moment, the Go tools impose a restriction that package names are unique
|
||||
across all packages linked into a single binary, but that restriction
|
||||
will be lifted soon.
|
||||
There is no requirement that package names be unique
|
||||
across all packages linked into a single binary,
|
||||
only that the import paths (their full file names) be unique.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
Loading…
Reference in New Issue
Block a user