Sign in
go
/
tour
/
c7374255f627de1d833c24ab73b75f6e7c25ef75
/
.
/
prog
/
multiple-results.go
blob: eb9e70503735840351ba3a2fc103e3254854a139 [
file
] [
log
] [
blame
]
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)
}