gorilla / schema

Package gorilla/schema fills a struct with form values.
https://gorilla.github.io
BSD 3-Clause "New" or "Revised" License
1.39k stars 231 forks source link

Fix decode `encoding.TextUnmarshaler` slice #221

Open bozaro opened 1 month ago

bozaro commented 1 month ago

Fixes decoding encoding.TextUnmarshaler slice

This change is useful for decoding types like type ObjectID [12]byte (https://github.com/mongodb/mongo-go-driver/blob/2a0310912fc03388a3a38f504619758765d1be15/bson/objectid.go#L28-L29)

Same as #132, #180

jaitaiwan commented 1 month ago

At first glance, some of the changes don't make a whole lot of sense to me. I'll try to come back and review when I'm less tired.