top | item 42854077

(no title)

thangngoc89 | 1 year ago

> What happens if my return objects are out of the normal order? Like F() (int, error, int) {...}

The convention is that error should be the last return value. If the error is not nil, then discard other returned values.

discuss

order

No comments yet.