Skip to content

Commit

Permalink
Merge pull request #1 from jinzhu/master
Browse files Browse the repository at this point in the history
new pull
  • Loading branch information
yoyofx authored Apr 22, 2022
2 parents db116d0 + 7948fe2 commit 98a67fb
Show file tree
Hide file tree
Showing 10 changed files with 1,147 additions and 146 deletions.
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

0 comments on commit 98a67fb

Please sign in to comment.