This question already has an answer here:
- for loop in templates 1 answer
Simple, i need for loop in golang on view(template). I can not seams to find on how to do that. Or how to do same thing with range
?
a := []int{1, 2, 3}
for i := 1; i <= len(a); i++ {
fmt.Println(i)
}
how to do this on view?
</div>