rename method
This commit is contained in:
parent
bb446adb6f
commit
0ae1cb8e0d
@ -12,7 +12,7 @@ func ConvertToJSON(g interface{}) []byte {
|
||||
return g_json
|
||||
}
|
||||
|
||||
func ConvertFromJSON(body io.ReadCloser, inter interface{}) {
|
||||
func ConvertResponseFromJSON(body io.ReadCloser, inter interface{}) {
|
||||
json_err := json.NewDecoder(body).Decode(&inter)
|
||||
_ = json_err //TODO work with errors
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user