Martti T.
Martti T.
I think this is question for TinyGO repo. As `golang.org/x/net` quite popular and they probably have dealt with things like that already. I think you could add `replace` directive in...
also - we probably would move `StartH2CServer` method to separate file and add build flag that excludes `wasm`. ```go //go:build !wasm ``` @eliezedeck would you like to test is out...
could you give me commit hash that you are trying? I tried multiple older versions and this test still fails.
ok, got it working with this ```go package main import ( "bytes" "mime/multipart" "net/http" "net/http/httptest" "testing" "github.com/labstack/echo/v4" "github.com/stretchr/testify/require" ) func TestEchoBinder(t *testing.T) { bodyBuffer := new(bytes.Buffer) mw := multipart.NewWriter(bodyBuffer) mw.WriteField("ima_slice",...
So in v4.11.4 we had different behavior `require.Equal(t, string("WEBHOOK"), data["ima_slice"])` would have passed and with https://github.com/labstack/echo/pull/2554 in v4.12.0 we changed it to pass with `require.Equal(t, []string{"WEBHOOK", "OTHER"}, data["ima_slice"])` and in...
@benpate , would changing target type to `data := map[string][]string{}` work for you? Assuming you expect only string slices and request is always form then I think this would be...
if you are always dealing with multipart forms you could use `c.Request().MultipartForm.Value` in your specific handler and avoid `bind` logic, which is dark magick with reflect ```go data := map[string]any{}...
please add tests
Could you provide how `mail.Address` is declared? Is is struct or alias or ?
This ```go package main import ( "github.com/labstack/echo/v4" "github.com/labstack/echo/v4/middleware" "log/slog" "net/http" "net/mail" ) func main() { e := echo.New() e.Use(middleware.Logger()) e.POST("/", func(c echo.Context) error { type NewEmail struct { From mail.Address...