This commit is contained in:
cdle
2021-09-20 17:10:46 +08:00
parent 1d3987078b
commit 3609daf720
5 changed files with 82 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
package core
import "github.com/gin-gonic/gin"
var Server *gin.Engine
func init() {
Server = gin.New()
}
func RunServer() {
Server.Run(":" + sillyGirl.Get("port", "8080"))
}