We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b1e667 commit 3919bbbCopy full SHA for 3919bbb
mapify.go
@@ -51,6 +51,9 @@ func (e Element) StructField() (_ reflect.StructField, ok bool) {
51
}
52
53
// MapAny maps any object (struct, map, slice etc.) by converting each struct found to a map.
54
+//
55
+// * for struct the returned type will be map[string]interface{}
56
+// * for slice of structs the returned type will be []map[string]interface{}
57
func (i Mapper) MapAny(v interface{}) (interface{}, error) {
58
return i.newInstance().mapAny("", v)
59
0 commit comments