ls 5 years ago
parent
commit
ba08a343df
1 changed files with 5 additions and 0 deletions
  1. 5 0
      utils.go

+ 5 - 0
utils.go

@@ -22,6 +22,11 @@ const (
 // Map is a shortcut for map[string]interface{}
 type Map map[string]interface{}
 
+// NewMap new map
+func NewMap() *Map {
+	return make(Map)
+}
+
 // String map to json string
 func (m Map) String() string {
 	bs, _ := json.Marshal(m)