Simple online shop in process written in Go.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
594 B

package wwwshop
import (
c "WWWShop/wwwshop/controller"
u "WWWShop/wwwshop/controller/usercontroller"
g "WWWShop/wwwshop/controller/groupcontroller"
d "WWWShop/wwwshop/dao/database"
type WWWShop struct {}
func New() WWWShop {
var self = WWWShop {};
return self;
func (self WWWShop) Init() {
user_controller := c.GenerateController(u.New())
group_controller := c.GenerateController(g.New())
http.Handle("/group", group_controller)
http.Handle("/user", user_controller)
http.ListenAndServe(":8080", nil)