Sign in
go
/
tour
/
ef6b8ec2d71077a475d858425d489e4e8f3c8db6
/
.
/
content
/
basics
/
multiple-results.go
blob: 1b86fd7d0721af509eb9afdf3fe9f5c72bbd30f7 [
file
] [
log
] [
blame
]
// +build OMIT
package main
import "fmt"
func swap(x, y string) (string, string) {
return y, x
}
func main() {
a, b := swap("hello", "world")
fmt.Println(a, b)
}