]> Sergey Matveev's repositories - linksexp.git/commitdiff
gemini:// support
authorSergey Matveev <stargrave@stargrave.org>
Fri, 3 Dec 2021 08:39:14 +0000 (11:39 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 3 Dec 2021 08:39:14 +0000 (11:39 +0300)
main.go

diff --git a/main.go b/main.go
index ffa32468ca023ed5a5dd8959ae49ce8a72506690..f2d7d183810c6bdd1f33b05948b2168359cad602 100644 (file)
--- a/main.go
+++ b/main.go
@@ -60,6 +60,9 @@ func main() {
                        sort.Strings(m["Category"])
                        cats := strings.Join(m["Category"], " ")
                        for _, f := range m["Feed"] {
+                               if strings.HasPrefix(f, "gemini://") {
+                                       f = "https://gemini/" + f
+                               }
                                fmt.Println(f, cats)
                        }
                }