Why does req.Response have errors as member fields? #291
Unanswered
adityathebe
asked this question in
Q&A
Replies: 1 comment
-
errors are propagated as return value: resp, err := client.R().Get(url) And also record into |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, I've been learning quite a bit from this library.
I am curious to know why the Response object needs to have error fields (let alone 2 of them)? Why can't the errors be propagated as return values?
Cheers
Beta Was this translation helpful? Give feedback.
All reactions