3 ms·
I haven't used Go yet, but I think I would just stick a fmt.Print("") at the top of the function I'm debugging to make the compiler shut up.
by laurent123456 14y ago
I haven't used Go yet, but I think I would just stick a fmt.Print("") at the top of the function I'm debugging to make the compiler shut up.
- enneff 14y agoOr you can just declare an anonymous global variable: var _ = fmt.Println Now the fmt package is always in use. No more import issues.