Break and continue statements in loops

This might be a stupid question but I cannot figure out how could I use the “break” and “continue” statements in range loops.

You can not.

You should study the Go template documentation.

Thanks for the answer. Just came to my mind that as an alternative I can use the scratchpad to build a list which only contains the needed items. A little bit more complex but I could use this to replace the continue statement.

I guess a more common replacment for the continue statement would be to surround the print statements with a conditional.