add comments

This commit is contained in:
MaysWind
2020-12-26 00:02:55 +08:00
parent c9190e2427
commit 864ef7c17c
3 changed files with 14 additions and 0 deletions
+2
View File
@@ -2,6 +2,8 @@ package core
import "github.com/mayswind/lab/pkg/errs"
// MiddlewareHandlerFunc represents the middleware handler function
type MiddlewareHandlerFunc func(*Context)
// ApiHandlerFunc represents the api handler function
type ApiHandlerFunc func(*Context) (interface{}, *errs.Error)