diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2020-10-04 22:58:03 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2020-10-04 22:58:03 +0200 |
commit | 5b456afb49bfa6ff1567510bc1d9362377d32216 (patch) | |
tree | e9f13973251405095dd8b0a31930ca10caa57163 /links.go | |
parent | 1f700deeb1a26ab289178b76518a33faa3f51545 (diff) | |
download | startpage-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.go | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -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 -} |