UnMarshalTableInfo unmarshal the json data to TableInfo struct
(data string)
| 131 | |
| 132 | // UnMarshalTableInfo unmarshal the json data to TableInfo struct |
| 133 | func UnMarshalTableInfo(data string) (map[string]interface{}, error) { |
| 134 | info := map[string]interface{}{} |
| 135 | err := json.Unmarshal([]byte(data), &info) |
| 136 | if err != nil { |
| 137 | return info, err |
| 138 | } |
| 139 | return info, nil |
| 140 | } |