]> Sergey Matveev's repositories - linksexp.git/blobdiff - main.go
Unify copyright comment format
[linksexp.git] / main.go
diff --git a/main.go b/main.go
index ffa32468ca023ed5a5dd8959ae49ce8a72506690..5681d3f02b024e8dca187b3ce476ef19b3085d5d 100644 (file)
--- a/main.go
+++ b/main.go
@@ -1,19 +1,17 @@
-/*
-linksexp -- Texinfo/XBEL/OPML/urls autogeneration from recfile bookmark
-Copyright (C) 2021 Sergey Matveev <stargrave@stargrave.org>
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, version 3 of the License.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program.  If not, see <http://www.gnu.org/licenses/>.
-*/
+// linksexp -- Texinfo/XBEL/OPML/urls autogeneration from recfile bookmark
+// Copyright (C) 2021-2024 Sergey Matveev <stargrave@stargrave.org>
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, version 3 of the License.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 package main
 
@@ -60,6 +58,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)
                        }
                }