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

No way to comment an anonymous import #65

Open
deitrix opened this issue Oct 24, 2019 · 1 comment
Open

No way to comment an anonymous import #65

deitrix opened this issue Oct 24, 2019 · 1 comment

Comments

@deitrix
Copy link

deitrix commented Oct 24, 2019

Various linting tools will throw an error if an anonymous import isn't documented with a comment.

Something like:

import (
    "fmt"
    "log"

    // Import the MySQL driver for database/sql.
    _ "github.com/go-sql-driver/mysql"
)

Is this possible using Jennifer?

@dave
Copy link
Owner

dave commented Oct 24, 2019

I don’t think that’s possible right now, but it’s a valid feature request so I’m happy for it to be added. Not sure I’ll have time to work on it in the next couple of months though unfortunately...

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

No branches or pull requests

2 participants