The Sequence function
When creating a template, you can now use the Sequence(num) function in order to create an integer array with length of num
.
For example:
{{- range $i, $item := .Sequence 3 }}
a
{{- end }}
Will yield:
a
a
a
When creating a template, you can now use the Sequence(num) function in order to create an integer array with length of num
.
For example:
{{- range $i, $item := .Sequence 3 }}
a
{{- end }}
Will yield:
a
a
a