go-imports
Auto import Go packages via the goimports command line tool
abiosoft 23,980 11 0.2.0 MIT GitHub

go-imports package

Auto import Go packages using goimports tool

Prerequisite

Install goimports if it is not installed

go get -v golang.org/x/tools/cmd/goimports

Usage

Using command palette cmd-shift-p, search for Go Imports: Process or using keybinding ctrl-shift-i.