To see all return and panic statements within a function, press &shortcut:HighlightUsagesInFile; when the caret is at the func and return keywords or the panic function.

Highlight exit points

GoLand tips of the day, build 2078