Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subdirectory name of source code #2

Open
GoogleCodeExporter opened this issue Feb 4, 2016 · 3 comments
Open

Subdirectory name of source code #2

GoogleCodeExporter opened this issue Feb 4, 2016 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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

@GoogleCodeExporter
Copy link
Author

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.

Original comment by [email protected] on 4 Jul 2010 at 4:14

  • Added labels: Priority-Low, Type-Other
  • Removed labels: Priority-Medium, Type-Defect

@GoogleCodeExporter
Copy link
Author

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"

Original comment by [email protected] on 4 Jul 2010 at 4:59

@GoogleCodeExporter
Copy link
Author

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 comment by [email protected] on 5 Jul 2010 at 10:42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant