4 ms·
Even easier: just add _ before you import: import ( _ "fmt" ) To prevent the unused var error you can assign the var to an _ as well: _ = unusedVa
by melvinmt 14y ago
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
- sltkr 14y ago> Even easier: just add _ before you import How is that an improvement? That's just as much work as commenting the line out.