-
Type:
Bug
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
type ts struct { Value map[int]string } instanceMap := map[string]interface{}{"value": map[int]interface{}{1: 12, 2: 122}} instanceByte, err := bson.Marshal(instanceMap) require.NoError(t, err) fmt.Println(fmt.Sprintf("%v", instanceByte)) var newInstance ts err = bson.Unmarshal(instanceByte, &newInstance) require.NoError(t, err)