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

fix one line imports as mage:imports #204

Merged
merged 2 commits into from
Dec 11, 2018
Merged

fix one line imports as mage:imports #204

merged 2 commits into from
Dec 11, 2018

Conversation

natefinch
Copy link
Member

// mage:import
import "github.com/example.com/foo"

This used to not be recognized as a mage import, now it works. The trick is that the comment above is not on the package declaration, but on the declaration as a whole.

fixes #194

@natefinch natefinch merged commit aedfce6 into master Dec 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

single line import doesn't work with mage:import
1 participant