GoSublime icon indicating copy to clipboard operation
GoSublime copied to clipboard

import removed incorrectly

Open etsangsplk opened this issue 5 years ago • 1 comments

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".

etsangsplk avatar May 15 '20 18:05 etsangsplk

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

DisposaBoy avatar May 16 '20 06:05 DisposaBoy