go-querystring icon indicating copy to clipboard operation
go-querystring copied to clipboard

Encoder interface not respected for `interface{}` types

Open TomK opened this issue 1 year ago • 2 comments

when encoding a struct field with an interface{} or any type, using a type that implements Encoder is not respected

It seems that only the field type in the struct is checked for Encoder interface, and not the value of the field.

Playground: https://go.dev/play/p/VTG-X_HgunK

TomK avatar Jul 19 '24 14:07 TomK

@willnorris are you accepting PRs for this project? Is there any point in me investing time looking into this?

TomK avatar Jul 23 '24 10:07 TomK

I'm not actively using or working on the project anymore, so have been pretty resistant to adding new features. But something like this should likely be pretty small, so I think would be fine.

willnorris avatar Jul 25 '24 15:07 willnorris