From e9b48758be2d81aa53c1a9d8886800994cdcf099 Mon Sep 17 00:00:00 2001 From: Marcel Schneider Date: Fri, 21 Apr 2017 11:06:55 +0200 Subject: [PATCH] Save files as lower case --- server/server.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/server.go b/server/server.go index 1254710..6d4c1f3 100644 --- a/server/server.go +++ b/server/server.go @@ -5,6 +5,7 @@ import ( "fmt" "io/ioutil" "os" + "strings" "github.com/PuerkitoBio/goquery" ) @@ -56,7 +57,7 @@ func main() { return } - err = ioutil.WriteFile(fmt.Sprintf("%s/%s.%s.json", path, mensa, day), content, 0644) + err = ioutil.WriteFile(fmt.Sprintf("%s/%s.%s.json", path, strings.ToLower(mensa), day), content, 0644) if err != nil { fmt.Println(err.Error()) return