(ctx echo.Context, key string, defaultValue string)
| 3 | import "github.com/labstack/echo/v4" |
| 4 | |
| 5 | func DefaultQuery(ctx echo.Context, key string, defaultValue string) string { |
| 6 | if value := ctx.QueryParam(key); value != "" { |
| 7 | return value |
| 8 | } |
| 9 | |
| 10 | return defaultValue |
| 11 | } |
no outgoing calls
no test coverage detected