go项目脚手架
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sorbet/pkg/app/echo.go

15 lines
247 B

package app
import "github.com/labstack/echo/v4"
type echoContext struct {
echo.Context
ctx *Context
}
func (e *echoContext) Get(key string) any {
if val, ok := e.ctx.Get(key); ok && val != nil {
return val
}
return e.Context.Get(key)
}