<divclass="tabs"> {%- for _, o := range []string{"Alpha", "Beta", "Gamma", "Delta", "Epsilon"} -%} <inputname="type"type="radio"id="tab-{%s o %}"class="input"/> <labelfor="tab-{%s o %}"class="label">{%s o %}</label> <divclass="panel"> <p>This is a tab named {%s o %}</p> </div> {%- endfor -%} </div>