MCPcopy Create free account
hub / github.com/devfeel/mapper / main

Function main

example/object/main.go:25–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25func 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}

Callers

nothing calls this directly

Calls 2

MapperSliceFunction · 0.92
MapperFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…