goimports

(old repo) Tool to fix (add, remove) your Go imports automatically.

  • Owner: bradfitz/goimports
  • Platform:
  • License:: BSD 3-Clause "New" or "Revised" License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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!

Main metrics

Overview
Name With Ownerbradfitz/goimports
Primary LanguageGo
Program languageGo (Language Count: 1)
Platform
License:BSD 3-Clause "New" or "Revised" License
所有者活动
Created At2013-06-01 13:08:45
Pushed At2021-03-31 14:51:15
Last Commit At2014-12-12 10:42:42
Release Count0
用户参与
Stargazers Count1k
Watchers Count27
Fork Count74
Commits Count63
Has Issues Enabled
Issues Count0
Issue Open Count0
Pull Requests Count17
Pull Requests Open Count0
Pull Requests Close Count8
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private