goimports

command module
v0.0.0-...-5f4c5b8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2015 License: BSD-3-Clause Imports: 12 Imported by: 0

README

This tool updates your Go import lines, adding missing ones and
removing unreferenced ones.

     $ go get golang.org/x/tools/cmd/goimports

     Note the new location. This project has moved to the official
     go.tools repo. Pull requests here will no longer be accepted.
     Please use the Go process: http://golang.org/doc/contribute.html

It acts the same as gofmt (same flags, etc) but in addition to code
formatting, also fixes imports.

See usage and editor integration notes, now moved elsewhere:

   http://godoc.org/golang.org/x/tools/cmd/goimports

Happy hacking!

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Godeps
_workspace/src/golang.org/x/tools/imports
Package imports implements a Go pretty-printer (like package "go/format") that also adds or removes import statements as necessary.
Package imports implements a Go pretty-printer (like package "go/format") that also adds or removes import statements as necessary.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL