13 lines
162 B
Go
13 lines
162 B
Go
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)
|
|
}
|