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

proposal: Import local package using ./[moduleName] #39320

Closed
astro-nomize opened this issue May 30, 2020 · 1 comment
Closed

proposal: Import local package using ./[moduleName] #39320

astro-nomize opened this issue May 30, 2020 · 1 comment
Labels
Milestone

Comments

@astro-nomize
Copy link

@astro-nomize astro-nomize commented May 30, 2020

[this is not a bug report, it's a feature suggestion]
Currently you cannot import go modules in the same folder as another go file.
For example doing this:

import "./myPackage.go"

Causes an error. This would be a great feature for larger-scale applications & libraries.

Thanks for your consideration.

@astro-nomize astro-nomize changed the title Import local package using ./[moduleName] proposal: Import local package using ./[moduleName] May 30, 2020
@gopherbot gopherbot added this to the Proposal milestone May 30, 2020
@gopherbot gopherbot added the Proposal label May 30, 2020
@astro-nomize
Copy link
Author

@astro-nomize astro-nomize commented May 30, 2020

This can be fixed by just using the main package throughout the files of your application.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.