gin不依赖配置
This commit is contained in:
@ -1,8 +1,17 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"code.zhecent.com/gopkg/light-core/lightCore"
|
||||
"github.com/gin-gonic/gin"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestStart(t *testing.T) {
|
||||
|
||||
lightCore.StartEngine("debug").
|
||||
//LoadHtml("view/*").
|
||||
Mounts([]*lightCore.Routers{}).
|
||||
SetNoRoute(func(context *gin.Context) {
|
||||
}).
|
||||
Launch(8888)
|
||||
}
|
||||
|
Reference in New Issue
Block a user