You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be better if the source code were into a directory with a name ready
to import.
So, instead of:
import l4g "log4go.googlecode.com/svn/stable"
we could use it directly from:
import "log4go.googlecode.com/svn/l4g"
Original issue reported on code.google.com by [email protected] on 3 Jul 2010 at 8:58
The text was updated successfully, but these errors were encountered:
The import statement actually uses the package name by default, not the last
name in the directory path. So, if you don't rename it l4g, it's log4go. For
the purposes of code brevity, I like to use l4g, but I submit that log4go
should still be the package name.
I've been confused with that. Anyway if it's used the same name for both
directory and package (like in Go core) then people will know how is called the
package
import "log4go.googlecode.com/svn/log4go"
The argument that I have heard is that the subdomain matching the package name
is just as verbose, and gives you the option to have /svn/stable, /svn/trunk,
etc with little effort.
Original issue reported on code.google.com by
[email protected]
on 3 Jul 2010 at 8:58The text was updated successfully, but these errors were encountered: