From 9b06917166f9b4d96ace2432509d4fb3698b8d8f Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Sun, 19 May 2019 11:56:09 +0200 Subject: [PATCH] Weather: Move to subdirectory --- main.go | 3 ++- statusscreen-weather.go => src/weather/weather.go | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) rename statusscreen-weather.go => src/weather/weather.go (97%) diff --git a/main.go b/main.go index fbccedd..8fb5d36 100644 --- a/main.go +++ b/main.go @@ -5,6 +5,7 @@ import ( "./src/config" "./src/pollen" "./src/sl" + "./src/weather" tm "github.com/buger/goterm" "time" ) @@ -15,7 +16,7 @@ func main() { clock := clock.Clock{Config: &config} pollen := pollen.Pollen{Config: &config} sl := sl.SL{Config: &config} - weather := Weather{Config: &config} + weather := weather.Weather{Config: &config} tm.Clear() tm.Print("\033[?25l") diff --git a/statusscreen-weather.go b/src/weather/weather.go similarity index 97% rename from statusscreen-weather.go rename to src/weather/weather.go index 0b7dbdc..80d0909 100644 --- a/statusscreen-weather.go +++ b/src/weather/weather.go @@ -1,7 +1,7 @@ -package main +package weather import ( - "./src/config" + "../config" "io/ioutil" "net/http" "strings"