fs/index.html

25 lines
579 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
{{ if .Err }}
<div style="color: red;">{{.Err}}</div>
{{ else }}
<ul>
{{ range .Entries }}
<li>
{{ if .IsDir }}
<a href="{{.Name}}/">{{.Name}}/</a>
{{ else }}
<a href="{{.Name}}">{{.Name}}</a>
{{ end }}
</li>
{{ end }}
</ul>
{{ end }}
</body>
</html>