We can return multiple values from a function in Golang, the below code shows how we can return multiple values
package main
import “fmt”
func reverse(a,b string)(string, string)
{
return b,a
}
func main()
{
x,y:= reverse(“app”,”majix”)
fmt.println(x, y)
}