Answer the question
In order to leave comments, you need to log in
How to return result or error?
I have a function that can return a struct or an error.
But when I write return nil, err, I get an errorfunc Start() (RestResponse, error) {
if err != nil {
return nil, err
}
cannot convert nil (untyped nil value) to RestResponse
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question