()
| 23 | } |
| 24 | |
| 25 | func main() { |
| 26 | var items *[]Country = new([]Country) |
| 27 | c := &Country{BaseModel{1, "1X"}, "111"} |
| 28 | *items = append(*items, *c) |
| 29 | var mitems *[]CountryRes = new([]CountryRes) |
| 30 | mapper.MapperSlice(items, mitems) |
| 31 | fmt.Println(items) |
| 32 | fmt.Println(mitems) |
| 33 | |
| 34 | to := &CountryRes{} |
| 35 | mapper.Mapper(c, to) |
| 36 | fmt.Println(to) |
| 37 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…