nspcc-dev / neofs-sdk-go

Go implementation of NeoFS SDK
Apache License 2.0
5 stars 14 forks source link

Add CopyTo method for deep copy #512

Closed smallhive closed 1 year ago

smallhive commented 1 year ago

closes #194

smallhive commented 1 year ago

what about object.Object?

I wasn't confident about it. But added it now

carpawell commented 1 year ago

BTW, I am not sure dropping deep copy method for the structs that do not need it for now is a must. If it had been already done I wouldn't have dropped it. Looks like a good practice to provide CopyTo to all the structs (we may change their implementations) or to none of them.