mirror of
https://github.com/kataras/iris.git
synced 2025-01-24 11:11:03 +01:00
46505f62db
Former-commit-id: cb775edc72bedc88aeab4c5a6de6bfc6bd56fae2
42 lines
569 B
Go
42 lines
569 B
Go
// Code generated by hero.
|
|
// DO NOT EDIT!
|
|
package template
|
|
|
|
import (
|
|
"bytes"
|
|
|
|
"github.com/shiyanhui/hero"
|
|
)
|
|
|
|
func UserList(userList []string, buffer *bytes.Buffer) {
|
|
buffer.WriteString(`<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
</head>
|
|
|
|
<body>
|
|
`)
|
|
for _, user := range userList {
|
|
buffer.WriteString(`
|
|
<ul>
|
|
`)
|
|
buffer.WriteString(`<li>
|
|
`)
|
|
hero.EscapeHTML(user, buffer)
|
|
buffer.WriteString(`
|
|
</li>
|
|
`)
|
|
|
|
buffer.WriteString(`
|
|
</ul>
|
|
`)
|
|
}
|
|
|
|
buffer.WriteString(`
|
|
</body>
|
|
</html>
|
|
`)
|
|
|
|
}
|