You’re very welcome Marek.
I hear you - my syntax background was very much Ruby/php/javascript based. GO took me a few steps back before I could move forward but I think if you’ve got the grounding in PHP and Ruby, give it a couple of weeks and you’ll be able to do some good data manipulation. I’ve been learning Elixir at the same time and am enjoying the learning process of both.
I believe that the seq
function is what you need to achieve your desired effect. For example:
{{ range (seq 10)}}
<li> myelement </li>
{{ end }}
See more on usage in the docs:
https://gohugo.io/functions/seq/
Hope this helps.
Saul