|
@ -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 |
|
|