1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-02 01:37:11 +00:00

minor: godoc

This commit is contained in:
Gerasimos (Makis) Maropoulos
2020-08-30 17:18:04 +03:00
parent 65e60df44e
commit 8b28ae14f8
4 changed files with 67 additions and 21 deletions

View File

@@ -6,18 +6,23 @@
<title>HTML Template Example</title>
</head>
<body>
<h2>{{.Name}}</h2>
<h3>{{.Age}}</h3>
<h2>Name: {{.Name}}</h2>
<h3>Age: {{.Age}}</h3>
<h4>Slice</h4>
{{range $idx, $item := .Items}}
{{ $idx }} - {{ $item }} <br/>
{{end}}
<h4>Map</h4>
{{range $key, $value := .Map}}
{{ $key }} - {{ $value }} <br/>
{{end}}
<h4>Nested</h4>
<strong>Title:</strong>{{ .Nested.Title}}
<hr/>
<strong>Read more at: <a href="https://golang.org/pkg/html/template" target="_new">