You can give names to return values. These names act as variables inside the function:
func divide(a, b int) (quotient, remainder int) {
quotient = a / b
remainder = a % b
return
}
The bare return at the end returns the current values of quotient and remainder. Named returns document what the function returns and can simplify complex functions. Use them when the purpose of return values isn't obvious.