Go functions can return more than one value. This is one of Go's most distinctive features. Declare multiple return types in parentheses:
func divide(a, b int) (int, int) {
return a / b, a % b
}
This returns both the quotient and remainder. Call it like this: q, r := divide(, ). Now q is and r is . Multiple returns eliminate the need for output parameters or wrapper structs.