INNER CODE UNIT · Go
func
GoAdminGroup/go-admin · context/context.go:82
func (ctx *Context) SetUserValue(key string, value interface{}) {
ctx.UserValue[key] = value
}
// GetUserValue get the value of key.
func (ctx *Context) GetUserValue(key string) interface{} {
return ctx.UserValue[key]
}
// Path return the url path.
func (ctx *Context) Path() string {
return ctx.Request.URL.Path
}
// Abort abort the context.
func (ctx *Context) Abort() {
ctx.index = abortIndex
}