1
0
forked from zv0n/lunch-go

Remove hello world

This commit is contained in:
zv0n 2022-10-29 13:42:53 +02:00
parent 317c84a1fb
commit 60d505a966

View File

@ -53,7 +53,6 @@ func refresh(c *gin.Context) {
}
func main() {
fmt.Println("Hello, World!")
restaurants = append(restaurants, r.NewMenickaRestaurant("https://www.menicka.cz/2752-u-drevaka-beergrill.html", "U Dřeváka"))
restaurants = append(restaurants, r.NewMenickaRestaurant("https://www.menicka.cz/4116-padagali.html", "Padagali"))
restaurants = append(restaurants, r.NewMenickaRestaurant("https://www.menicka.cz/5448-light-of-india.html", "Light of India"))
@ -71,7 +70,7 @@ func main() {
router.GET("/get_all", getAll)
router.GET("/get", get)
router.GET("/refresh", refresh)
router.Run("localhost:8080")
router.Run("0.0.0.0:8080")
/*
test := restaurants.MakeMenickaRestaurant("https://www.menicka.cz/2752-u-drevaka-beergrill.html", "U Dřeváka")
test.Parse()