init commit

This commit is contained in:
sentriz
2019-03-24 17:49:03 +00:00
commit e9c0f09d0c
527 changed files with 477627 additions and 0 deletions

21
cmd/server/main.go Normal file
View File

@@ -0,0 +1,21 @@
package main
import (
"log"
"github.com/sentriz/gonic/db"
"github.com/sentriz/gonic/handler"
"github.com/sentriz/gonic/router"
)
func main() {
d := db.New()
r := router.New()
h := &handler.Handler{
DB: d,
Router: r,
}
rest := r.Group("/rest")
rest.GET("", h.GetTest)
log.Fatal(r.Start("127.0.0.1:5001"))
}