in helpers/helpers.go [30:38]
func ReadJsonBody(from io.Reader, to interface{}) error { byteContent, readErr := ioutil.ReadAll(from) if readErr != nil { return readErr } marshalErr := json.Unmarshal(byteContent, to) return marshalErr }