summaryrefslogtreecommitdiff
path: root/links.go
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-10-04 22:58:03 +0200
committerLaria Carolin Chabowski <laria@laria.me>2020-10-04 22:58:03 +0200
commit5b456afb49bfa6ff1567510bc1d9362377d32216 (patch)
treee9f13973251405095dd8b0a31930ca10caa57163 /links.go
parent1f700deeb1a26ab289178b76518a33faa3f51545 (diff)
downloadstartpage-5b456afb49bfa6ff1567510bc1d9362377d32216.tar.gz
startpage-5b456afb49bfa6ff1567510bc1d9362377d32216.tar.bz2
startpage-5b456afb49bfa6ff1567510bc1d9362377d32216.zip
New config format and new features
We're now using json as a config format instead of our weird own format. The weather icon is now optional, simply don't define WeatherPlace in your config. You can now specify which subreddit to get background images from. The default is still /r/EarthPorn.
Diffstat (limited to 'links.go')
-rw-r--r--links.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/links.go b/links.go
index bd7b624..de88f63 100644
--- a/links.go
+++ b/links.go
@@ -1,7 +1,6 @@
package main
import (
- "errors"
"html/template"
)
@@ -9,14 +8,3 @@ type Link struct {
Title string
URL template.URL
}
-
-var links = []Link{}
-
-func addLinkCmd(params []string) error {
- if len(params) != 2 {
- return errors.New("add-link needs 2 parameters: title url")
- }
-
- links = append(links, Link{params[0], template.URL(params[1])})
- return nil
-}