jinzhu / copier

Copier for golang, copy value from struct to struct and more
MIT License
5.58k stars 489 forks source link

fix case-insensitivity #188

Open timohuovinen opened 1 year ago

timohuovinen commented 1 year ago

The commit 61dc501 changed Copier's default setting to be case-insensitive, causing some tests to fail. I've fixed this by making Copier case-sensitive again.

I copied the "primary set of tests" to test the new case-insensitive functionality, this was simpler than introducing generics and breaking go 1.13 compatibility, it should be easy to remove the unneccessary tests (if any).

To see the change in action, checkout and do go test ./...