This commit is contained in:
hoteas
2018-04-03 17:54:27 +00:00
parent 6ecdd575aa
commit 1de2c6e8b6
14 changed files with 405 additions and 385 deletions
+7 -3
View File
@@ -35,6 +35,10 @@ func (this *Application) ServeHTTP(w http.ResponseWriter, req *http.Request) {
//启动实例
func (this *Application) Run(router Router) {
this.Router = router
//this.Port = port
this.Port = this.Config.GetString("port")
@@ -175,9 +179,9 @@ func (this *Application) SetConnectListener(lis func(this *Context) bool) {
}
//网络错误
func (this *Application) session(w http.ResponseWriter, req *http.Request) {
}
//func (this *Application) session(w http.ResponseWriter, req *http.Request) {
//
//}
//序列化链接
func (this *Application) urlSer(url string) (string, []string) {