MSI creates a map[string]interface{} and puts it inside a new Map.

The arguments follow a key, value pattern.


Panics if any key arugment is non-string or if there are an odd number of arguments.


To easily create Maps:

m := objx.MSI("name", "Mat", "age", 29, "subobj", objx.MSI("active", true))

// creates an Map equivalent to
m := objx.New(map[string]interface{}{"name": "Mat", "age": 29, "subobj": map[string]interface{}{"active": true}})

MSI is referenced in 0 repositories