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

import removed incorrectly #970

Open
etsangsplk opened this issue May 15, 2020 · 1 comment
Open

import removed incorrectly #970

etsangsplk opened this issue May 15, 2020 · 1 comment

Comments

@etsangsplk
Copy link

import "github.com/jessevdk/go-flags"

....
parser := flags.NewParser(server, flags.Default)
.....

When I hit save the golang file, "github.com/jessevdk/go-flags" is removed.

I think "go-" is automatically ignored in during go build, so package with this prefix should not be removed as they are not "unsued".

@DisposaBoy
Copy link
Owner

That sounds like something goimports is doing - GoSublime/margo doesn't remove imports AFAIK.

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