Everyone else is suggesting goimports, but here's another trick:
import _ "unused/package"
This is usually used to benefit from the packages' side-effects (e.g. trigger init() - mostly used in SQL drivers to register the driver).