Skip to content

x/tools/cmd/goimports:  #17840

@Deathstroke72

Description

@Deathstroke72

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

1.7

What operating system and processor architecture are you using (go env)?

set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows

What did you do?

Import using the vendor folder. I used the github.com/lib/pq library. In my code, it only references postgres in the datasource name. If I don't use _ github.com/lib/pq/library in the imports section, goimports deletes the import line for it. I don't want to have to use the _ preface.

What did you expect to see?

What did you see instead?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions