In Go, you add an exclamation mark ! to negate the boolean.

To autocomplete your code, just press &shortcut:CodeCompletion;, select your variable, and type !.

Autocomplete boolean negation