jinzhu / copier

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

addition to docs #21

Closed dgaedcke closed 7 years ago

dgaedcke commented 7 years ago

Can you please say if there are any problem when field name on on Struct is Capital, and other (same name) starts with (small) lowercase letter.

Also, what happens with embedded fields....do they get copied too??

jinzhu commented 7 years ago

For embedded fields, they will be copied.

when field name on on Struct is Capital, and other (same name) starts with (small) lowercase letter

Which won't be copied, as go can't access lowercase fields out of your package.