Browse Source

Save files as lower case

vuex
Schneider 8 years ago
parent
commit
e9b48758be
  1. 3
      server/server.go

3
server/server.go

@ -5,6 +5,7 @@ import (
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"os" "os"
"strings"
"github.com/PuerkitoBio/goquery" "github.com/PuerkitoBio/goquery"
) )
@ -56,7 +57,7 @@ func main() {
return 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 { if err != nil {
fmt.Println(err.Error()) fmt.Println(err.Error())
return return

Loading…
Cancel
Save