We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Would it be possible to have an option to auto-import based on the current directory's go.mod?
go.mod
I'm thinking of something like the gore -autoimport option.
-autoimport
The text was updated successfully, but these errors were encountered:
You can import "." to load whatever Go module is present the current directory.
import "."
So maybe something like
gomacro -e 'import "."' -i
should suffice?
Sorry, something went wrong.
I get an error when trying to do this, unfortunately:
repl.go:1:8: error importing packages ... error loading packages ... metadata: -: no required module provides package
It tells me to try adding the package using go get, though from the debug output it seems like it did this already.
go get
No branches or pull requests
Would it be possible to have an option to auto-import based on the current directory's
go.mod
?I'm thinking of something like the gore
-autoimport
option.The text was updated successfully, but these errors were encountered: