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

Exclude Unused Imports #160

Open
robertoalvesme opened this issue Sep 27, 2022 · 0 comments
Open

Exclude Unused Imports #160

robertoalvesme opened this issue Sep 27, 2022 · 0 comments
Assignees

Comments

@robertoalvesme
Copy link

Is possible to exclude modules not in use?

I'm developing a project with Gorm using PostgreDB. I saw recentily that MySQL is imported and I would like to exclude from my project. Is it possible?

The document you expected this should be explained

What I want is to exclude MySQL and Other Database drivers from importing. Like:

exclude (
    gorm.io/driver/mysql v1.2.2 // indirect
    gorm.io/driver/mysql v1.3.2 // indirect
    gorm.io/driver/sqlite v1.3.6 // indirect
    gorm.io/driver/sqlserver v1.3.2 // indirect
    gorm.io/driver/mysql v1.3.6 // indirect
)

But everything I exclude, another driver appears in another version!

Expected answer

How can I do to exclude those packages I'm not using.

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