Returning Multiple Values from a Function in Go

Share this video with your friends

Send Tweet

Returning multiple values from a function is a common idiom in Go, most often used for returning values along with potential errors. We'll go over how to return multiple values from a function and use those values in our program.