-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Closed
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.Proposal-Acceptedhelp wanted
Milestone
Description
This is a repost of #20523 with, hopefully, a more clear description.
Go templates currently do not support the break nor the continue keyword -- which surprises people trying a construct similar to the one below.
{{ range $i, $e := .SomeSlice }}
{{ if gt $i 2 }}
{{ break }}
{{ end }}
{{ $e }}
{{ end }}/cc @igramnet
moorereason, FelicianoTech, pintergreg, ondrajz, p10rahulm and 23 more
Metadata
Metadata
Assignees
Labels
FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.The path to resolution is known, but the work has not been done.Proposal-Acceptedhelp wanted