()
| 34 | } |
| 35 | |
| 36 | func main() { |
| 37 | from := &ProductBasic{ |
| 38 | ProductId: 10001, |
| 39 | CategoryType: 1, |
| 40 | ProductTitle: "Test Product", |
| 41 | Item: ItemStruct1{ProductId: 20, Name: "pro", Item: "1"}, |
| 42 | Data: []byte{1, 2, 3, 4}, |
| 43 | CreateTime: time.Now(), |
| 44 | } |
| 45 | to := &ProductGetResponse{} |
| 46 | mapper.AutoMapper(from, to) |
| 47 | |
| 48 | from2 := &ProductBasic{} |
| 49 | mapper.Mapper(to, from2) |
| 50 | fmt.Println(from) |
| 51 | fmt.Println(to) |
| 52 | fmt.Println(from2) |
| 53 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…