A Go function that returns several values produces a vector. Bind it with the destructuring from earlier. The last element is often an error. |
|
This is a host convention, not a Clojure language feature. Clojure functions still return one value. When you want to hand back several pieces from Clojure, return a vector or a map on purpose. |
|
A non-nil error is a value. It is not thrown. |
|
Next example: Go Pointers.