github.com/Anderson-Lu/gobox@v0.0.0-20191127065433-3e6c4c2da420/convert/convert.go (about)

     1  package convert
     2  
     3  import "encoding/json"
     4  
     5  func ConvertBs2Interface(bs []byte) (map[string]interface{}, error) {
     6  	var result map[string]interface{}
     7  	e := json.Unmarshal(bs, &result)
     8  	return result, e
     9  }