go-repo/index.go

42 lines
1.3 KiB
Go
Raw Normal View History

2020-11-21 11:01:43 +00:00
package main
const index = `
2020-11-21 09:36:28 +00:00
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css" />
</head>
<body>
<div class="container">
<div class="row">
<table class="u-full-width">
<thead>
<tr>
<th>Package</th>
<th>Source</th>
<th>Documentation</th>
</tr>
</thead>
<tbody>
2020-11-21 11:01:43 +00:00
2020-11-21 09:36:28 +00:00
{{- range . }}
<tr>
2020-11-21 11:01:43 +00:00
<td>{{ .Import }}</td>
2020-11-21 09:36:28 +00:00
<td>
<a href="//{{ .Repository }}">{{ .Repository }}</a>
</td>
<td>
2020-11-21 11:01:43 +00:00
<a href="//pkg.go.dev/{{ .Import }}">
2020-11-21 09:36:28 +00:00
<img src="//img.shields.io/badge/godoc-reference-blue?style=for-the-badge" alt="GoDoc" />
</a>
</td>
</tr>
{{- end }}
</tbody>
</table>
</div>
</div>
</body>
</html>
2020-11-21 11:01:43 +00:00
`