On 12 February 2011 20:00, <r@golang.org> wrote: ================================ > --- a/doc/code.html > +++ b/doc/code.html > ...
14 years, 1 month ago
(2011-02-12 20:05:02 UTC)
#2
On 12 February 2011 20:00, <r@golang.org> wrote:
================================
> --- a/doc/code.html
> +++ b/doc/code.html
> @@ -160,9 +160,9 @@
> 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>.
Don't goinstalled files rather trample on this convention?
Chris
--
Chris "allusive" Dollin
>> Go's convention is that the package name is the last element of the >> ...
14 years, 1 month ago
(2011-02-13 02:03:09 UTC)
#4
>> 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>.
>
> Don't goinstalled files rather trample on this convention?
Plenty of people have written packages that do not follow
this convention. Those packages are just unconventional.
If you know of any, contact the others and ask them to fix them.
For an example of a conventional name using goinstall,
the package imported as "gosqlite.googlecode.com/hg/sqlite"
has package name sqlite.
Russ
On 13 February 2011 02:03, Russ Cox <rsc@golang.org> wrote: >>> Go's convention is that the ...
14 years, 1 month ago
(2011-02-13 08:51:53 UTC)
#6
On 13 February 2011 02:03, Russ Cox <rsc@golang.org> wrote:
>>> 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>.
>>
>> Don't goinstalled files rather trample on this convention?
>
> Plenty of people have written packages that do not follow
> this convention. Those packages are just unconventional.
> If you know of any, contact the others and ask them to fix them.
I see I've been mislead into taking mistakes as OK. Thanks for
the correction & ammunition, Russ.
Chris
--
Chris "allusive" Dollin
Issue 4160049: code review 4160049: code.html: update to reflect that package names need no...
(Closed)
Created 14 years, 1 month ago by r
Modified 14 years, 1 month ago
Reviewers:
Base URL:
Comments: 0