gorilla / schema

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

Fix decode `encoding.TextUnmarshaler` slice #180

Closed bozaro closed 2 years ago

bozaro commented 3 years 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/master/bson/primitive/objectid.go)

Same as #132

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it hasn't seen a recent update. It'll be automatically closed in a few days.

bozaro commented 3 years ago

:(

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it hasn't seen a recent update. It'll be automatically closed in a few days.

DavidLarsKetch commented 2 years ago

Checks out to me, thanks for the unit tests, I recommend this be merged in.