From: Sergey Matveev Date: Fri, 3 Dec 2021 08:39:14 +0000 (+0300) Subject: gemini:// support X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;ds=sidebyside;h=3ae1fc6789c91c90fb0746e97eb35406db4ee26e;p=linksexp.git gemini:// support --- diff --git a/main.go b/main.go index ffa3246..f2d7d18 100644 --- 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) } }