-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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
Custom packages are not found when imported #56
Labels
Comments
I disagree--it shouldn't require some Makefile magic to have 'import "./file"' import file.go from the current directory. Particularly, as the original poster mentions, when you use examples like this in the tutorial. If it requires some special magic to make it work intuitively there should at least be a big fat note in the tutorial where you introduce this feature. But honestly, having to jump through hoops to make (apparently) obvious things work will seriously impact the uptake of the language. |
Okay, so I've finally worked out that import *isn't* like #include--it's more like linking against a library. I couldn't find anything about this in the docs, and specifically in the tutorial it implies that you can just create file.go and reference it with 'import "./file"' which is pretty misleading. So the problem doesn't seem to be with import, it seems to be with the documentation. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by astronfo:
The text was updated successfully, but these errors were encountered: