Home

This project is considered stable GoDoc Go Report Card Build Status codecov

goimport is a tool to add, remove, or replace imports in Go files.

Example usage:

# Add errors package.
$ goimport -add errors foo.go

# Remove errors package.
$ goimport -rm errors foo.go

# Add errors package aliased as "errs"
$ goimport -add errors:errs foo.go

TODO:

Copyright © 2010-2017 Martin Tournoij <martin@arp242.net>
This document is licensed under a cc-by 4.0 license.