Merge pull request #9 from gwinn/master

update readme
This commit is contained in:
Alex Lushpai 2018-04-22 20:46:27 +03:00 committed by GitHub
commit 2bbbbb62d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)