Can you return multiple values from a function? Technology Community › Category: Golang › Can you return multiple values from a function? 0 Vote Up Vote Down VietMX Staff asked 4 years ago A Go function can return multiple values. Consider: package main import "fmt" func swap(x, y string) (string, string) { return y, x } func main() { a, b := swap("Mahesh", "Kumar") fmt.Println(a, b) }