Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Handler ¶
func Handler(fn HandlerFunc) gin.HandlerFunc
Types ¶
type Context ¶
type Context interface { Param(key string) string HTML(code int, name string, obj interface{}) String(code int, format string, values ...interface{}) Query(key string) string AbortWithError(code int, err error) *gin.Error GetRequest() *http.Request SetCookie(name, value string, maxAge int, path, domain string, secure, httpOnly bool) Redirect(code int, location string) }
type HandlerFunc ¶
type HandlerFunc func(Context)
Click to show internal directories.
Click to hide internal directories.