To set a breakpoint with a condition, select the Condition checkbox and type the desired expression in the text field.

Conditional breakpoints

GoLand tips, #2083