projects
/
sgblog.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
42dd16d
)
Redundant types
author
Sergey Matveev <stargrave@stargrave.org>
Tue, 5 Jan 2021 17:45:10 +0000 (20:45 +0300)
committer
Sergey Matveev <stargrave@stargrave.org>
Tue, 5 Jan 2021 17:45:10 +0000 (20:45 +0300)
cmd/sgblog/http.go
patch
|
blob
|
history
diff --git
a/cmd/sgblog/http.go
b/cmd/sgblog/http.go
index 403b72111d4c667694e9bfa61339ba9b3a18df9d..ce4bdccb854c8d8d1f86daf971a7b83f9f19ec2b 100644
(file)
--- a/
cmd/sgblog/http.go
+++ b/
cmd/sgblog/http.go
@@
-159,11
+159,11
@@
Topics: {{range .Topics}}[<tt><a href="{{$Cfg.URLPrefix}}?topic={{.}}">{{.}}</a>
var (
renderableSchemes = map[string]struct{}{
- "ftp":
struct{}
{},
- "gopher":
struct{}
{},
- "http":
struct{}
{},
- "https":
struct{}
{},
- "telnet":
struct{}
{},
+ "ftp": {},
+ "gopher": {},
+ "http": {},
+ "https": {},
+ "telnet": {},
}
)