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

new pull #1

Merged
merged 40 commits into from
Apr 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
ae58f7d
[fix] #78 Note that a copy was made after successful copy
matthieuzbo Feb 18, 2021
dcb8619
fix embedded struct copy
zerosnake0 Feb 26, 2021
46cc1a5
Merge pull request #85 from zerosnake0/issue84
jinzhu Feb 26, 2021
0053d8c
copy field name tags
tomtwinkle Mar 1, 2021
0439967
Merge pull request #81 from matthieujoossen/fix/78_hasCopied
jinzhu Mar 9, 2021
c4beccc
Fix copy slice, close #75
jinzhu Mar 9, 2021
54959a4
Fix copy slice, close #88
jinzhu Mar 9, 2021
d711dc7
Fix deep copy slice of interface, close #89
jinzhu Mar 9, 2021
1d40514
append destslice size only if dest size smaller than src
juju812 Mar 15, 2021
fc3adf5
Merge pull request #93 from juju812/master
jinzhu Mar 17, 2021
988ad70
fix embedded struct copy
zerosnake0 Feb 26, 2021
09f1480
[fix] #78 Note that a copy was made after successful copy
matthieuzbo Feb 18, 2021
fdf517d
Fix copy slice, close #75
jinzhu Mar 9, 2021
9332070
Fix copy slice, close #88
jinzhu Mar 9, 2021
8ca2e5a
Fix deep copy slice of interface, close #89
jinzhu Mar 9, 2021
fed2644
append destslice size only if dest size smaller than src
juju812 Mar 15, 2021
9319a6f
merge jinzhu:master
tomtwinkle Mar 19, 2021
e9cb173
try copier while failed to set slice element with struct type
juju812 Mar 30, 2021
1cde854
Fix copy map with nil interface
jinzhu Apr 14, 2021
c33ed07
Fix copy map with nested slice map
jinzhu Apr 22, 2021
8f9e587
Add more tests for map
jinzhu Apr 22, 2021
601a944
Merge pull request #96 from juju812/master
jinzhu May 31, 2021
b63539f
Merge pull request #86 from tomtwinkle/feature/field-name-tags
jinzhu May 31, 2021
f3509c9
Don't expose uncessary struct
jinzhu May 31, 2021
4551925
Update README
jinzhu May 31, 2021
c72a821
Fix copy from slice to single elem
jinzhu May 31, 2021
db8133c
added converter option for type conversions
tomdevelops Oct 10, 2021
8af390d
Add support to copy from a nil pointer of slice field to a slice field
math-nao Nov 6, 2021
d380b4d
Ignore unexported fields
jinzhu Dec 1, 2021
5de5170
Fix copier on v1.13
jinzhu Dec 1, 2021
ea008ed
fixed nil pointer copy issue for type converter
tomdevelops Dec 2, 2021
15ca5e0
Copy unexported struct fields in DeepCopy
Sep 17, 2021
b369e8a
Add test and fix for copy of anonymous field with unexported fields
Dec 10, 2021
633a171
Merge pull request #113 from joshhardy/fix-deepcopy-unexported-fields
jinzhu Dec 13, 2021
ab50287
Merge pull request #119 from math-nao/master
jinzhu Dec 13, 2021
ac2b762
fix bug from issue 117 that 'Copy map with slice-type value panic'
Jan 9, 2022
54aaef3
Merge pull request #115 from tomdevelops/feature/type-converter-option
jinzhu Jan 19, 2022
d132b06
Merge pull request #124 from cavanwang/master
jinzhu Jan 19, 2022
a647c89
style: simplify shouldIgnore
Feb 8, 2022
7948fe2
Merge pull request #126 from ag9920/style-simplify-shouldIgnore
jinzhu Feb 10, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
ci:
strategy:
matrix:
go: ['1.15', '1.14', '1.13']
go: ['1.16', '1.17']
platform: [ubuntu-latest, macos-latest] # can not run in windows OS
runs-on: ${{ matrix.platform }}

Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ import (
)

type User struct {
Name string
Role string
Age int32
Name string
Role string
Age int32
EmployeCode int64 `copier:"EmployeNum"` // specify field name

// Explicitly ignored in the destination struct.
Salary int
Expand All @@ -52,7 +53,7 @@ type Employee struct {
Salary int `copier:"-"`

DoubleAge int32
EmployeId int64
EmployeId int64 `copier:"EmployeNum"` // specify field name
SuperRole string
}

Expand Down
Loading