aboutsummaryrefslogtreecommitdiff
path: root/vendor/github.com/jinzhu/copier/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/jinzhu/copier/README.md')
-rw-r--r--vendor/github.com/jinzhu/copier/README.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/vendor/github.com/jinzhu/copier/README.md b/vendor/github.com/jinzhu/copier/README.md
index cff72405c..ec04b4be0 100644
--- a/vendor/github.com/jinzhu/copier/README.md
+++ b/vendor/github.com/jinzhu/copier/README.md
@@ -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
@@ -52,7 +53,7 @@ type Employee struct {
Salary int `copier:"-"`
DoubleAge int32
- EmployeId int64
+ EmployeId int64 `copier:"EmployeNum"` // specify field name
SuperRole string
}