Skip to content

docs: Example for range/each #23

@AlbinoGeek

Description

@AlbinoGeek

Synopsis

There are no examples for range/each.

{{range $e := .providers}}
<li><a href="/login/w/{{$e}}" class="button">
  <i class="fa fa-{{$e}}"></i> {{ucfirst $e}}
</a></li>
{{end}}

https://golang.org/pkg/text/template/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions