Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to copy from one []* to another []* #109

Open
junneyang opened this issue Aug 16, 2021 · 1 comment
Open

how to copy from one []* to another []* #109

junneyang opened this issue Aug 16, 2021 · 1 comment
Assignees

Comments

@junneyang
Copy link

junneyang commented Aug 16, 2021

from: userDOs
to: userDTOs := make([]*do.UserDTO, 0)

copier.CopyWithOption(userDTOs, userDOs)

it does not work...

@daidai21
Copy link

from: userDOs to: userDTOs := make([]*do.UserDTO, 0)

copier.CopyWithOption(userDTOs, userDOs)

it does not work...

try like copier.CopyWithOption(&userDTOs, &userDOs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants