package test
import (
"github.com/gin-gonic/gin"
"github.com/jinzhu/gorm"
"github.com/zngue/go_tool/src/gin_run"
"testing"
"github.com/zngue/go_gin_member/router"
"github.com/zngue/go_gin_member/migration"
)
func TestGinRun(t *testing.T) {
gin_run.GinRun(func(group *gin.RouterGroup) {
//回调函数 gin路由添加
router.Router(group)
}, func(db *gorm.DB) {
//自动创建表
migration.Migration(db)
})
}
golang gin框架微服务一键搭建,为您很好的服务