blob: 317d403a5b2d6048488f64c9f1392c40bac82576 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<!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>
{{ range $key, $value := .Packages }}
{{ $importPath := printf "%v/%v" $.URL $key }}
{{ if ne $value.URL "" }}
{{ $importPath = printf "%v/%v" $value.URL $key }}
{{ end }}
<tr>
<td>{{ $importPath }}</td>
<td>
<a href="//{{ $value.Repo }}">{{ $value.Repo }}</a>
</td>
<td>
<a href="//{{ $.Godoc.Host }}/{{ $importPath }}">
<img src="//pkg.go.dev/badge/{{ $importPath }}.svg" alt="Go Reference" />
</a>
</td>
</tr>
{{ end }}
</tbody>
</table>
</div>
</div>
</body>
</html>
|