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.
16 lines
247 B
16 lines
247 B
1 year ago
|
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)
|
||
|
}
|