worldline-go / struct2

convert struct to map with custom hook functions
https://pkg.go.dev/github.com/worldline-go/struct2
MIT License
20 stars 3 forks source link

Fix: support more string tag casting #13

Closed roneli closed 1 month ago

roneli commented 1 month ago

we noticed that when we have in some structs (GCP in this case) that if we have a string tag the casting will only check if it's a stringer.

Added support to more types. Code was copied from spf13/cast, and should keep also original intent.

Will add tests in next commit

@rytsh

rytsh commented 1 month ago

Hi @roneli, this is very good improvement. Thanks for that, I am merging it✔