Skip to content

Commit 8ce9063

Browse files
committed
update map
1 parent 20d3297 commit 8ce9063

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,16 @@
3030
//get the map copy with deep copy
3131
v.Clone()
3232

33+
//copy the value from m to v
34+
v.Join(m)
35+
36+
//transfer the map to map[string]interface
37+
v.ToGoMap()
38+
3339
//merge all values from v to m
3440
Merge(m,v)
41+
42+
//transfer the struct to map
43+
StructToMap(&strcut{/*your strcut*/})
3544

3645
```

0 commit comments

Comments
 (0)