Browse Source

Save files as lower case

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

3
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

Loading…
Cancel
Save