update readme

This commit is contained in:
Alex Lushpai 2018-04-22 20:44:53 +03:00
parent 7dc2538328
commit 1f71efb1ed

View File

@ -33,12 +33,12 @@ func main() {
Limit: 20, Limit: 20,
Page: 1, Page: 1,
},) },)
if err.ErrorMsg != "" { if err.RuntimeErr != nil {
fmt.Printf("%v", err.ErrorMsg) fmt.Printf("%v", err.ErrorMsg)
} }
if status >= http.StatusBadRequest { if status >= http.StatusBadRequest {
fmt.Printf("%v", err.ErrorMsg) fmt.Printf("%v", err.ApiError())
} }
for _, value := range data.Orders { for _, value := range data.Orders {
@ -67,12 +67,12 @@ func main() {
}, },
}, },
) )
if err.ErrorMsg != "" { if err.RuntimeErr != nil {
fmt.Printf("%v", err.ErrorMsg) fmt.Printf("%v", err.ErrorMsg)
} }
if status >= http.StatusBadRequest { if status >= http.StatusBadRequest {
fmt.Printf("%v", err.ErrorMsg) fmt.Printf("%v", err.ApiError())
} }
fmt.Println(idata.processedOffersCount) fmt.Println(idata.processedOffersCount)