123456789101112131415161718192021222324252627 |
- package main
- import (
- "fmt"
- "github.com/fvbock/endless"
- "github.com/gin-gonic/gin"
- "base-gin/conf"
- "base-gin/helpers"
- "base-gin/router"
- "base-gin/utils"
- )
- func main() {
- r := gin.New()
-
- utils.Bootstrap(r, utils.BootstrapConf{LogLevel: conf.Conf.LogLevel})
-
-
-
-
-
-
- helpers.InitMysql()
- router.Http(r)
- fmt.Println("hello world")
- endless.ListenAndServe(":80", r)
- }
|