diff options
author | Feuerfuchs <git@feuerfuchs.dev> | 2020-05-18 18:51:19 +0200 |
---|---|---|
committer | Feuerfuchs <git@feuerfuchs.dev> | 2020-05-18 18:51:19 +0200 |
commit | c772716e98e11181d301deadeca52856ac18f085 (patch) | |
tree | 25039bd7739039c000ab748b1547b5e5514d0b7a /internal/port/main.go | |
parent | WIP: Refactoring (diff) | |
download | gopherproxy-c772716e98e11181d301deadeca52856ac18f085.tar.gz gopherproxy-c772716e98e11181d301deadeca52856ac18f085.tar.bz2 gopherproxy-c772716e98e11181d301deadeca52856ac18f085.zip |
Improved Gemini support
Diffstat (limited to 'internal/port/main.go')
-rw-r--r-- | internal/port/main.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/port/main.go b/internal/port/main.go index 763057b..fe85ba4 100644 --- a/internal/port/main.go +++ b/internal/port/main.go | |||
@@ -237,9 +237,15 @@ func ListenAndServe(bind, startpagefile string, robotsfile string, robotsdebug b | |||
237 | "hasPrefix": func(s string, prefix string) bool { | 237 | "hasPrefix": func(s string, prefix string) bool { |
238 | return strings.HasPrefix(s, prefix) | 238 | return strings.HasPrefix(s, prefix) |
239 | }, | 239 | }, |
240 | "hasSuffix": func(s string, suffix string) bool { | ||
241 | return strings.HasSuffix(s, suffix) | ||
242 | }, | ||
240 | "title": func(s string) string { | 243 | "title": func(s string) string { |
241 | return strings.Title(s) | 244 | return strings.Title(s) |
242 | }, | 245 | }, |
246 | "string": func(s interface{}) string { | ||
247 | return fmt.Sprint(s) | ||
248 | }, | ||
243 | } | 249 | } |
244 | 250 | ||
245 | // | 251 | // |