(ctx echo.Context, key, defaultValue string)
| 3 | import "github.com/labstack/echo/v4" |
| 4 | |
| 5 | func DefaultPostForm(ctx echo.Context, key, defaultValue string) string { |
| 6 | value := ctx.Request().Form.Get(key) |
| 7 | if value == "" { |
| 8 | return defaultValue |
| 9 | } |
| 10 | return value |
| 11 | } |
no test coverage detected