Even easier: just add _ before you import:
import (
_ "fmt"
)
To prevent the unused var error you can assign the var to an _ as well: _ = unusedVar