Skip to content

Instantly share code, notes, and snippets.

@larzconwell
Created July 13, 2012 01:13
Show Gist options
  • Save larzconwell/3102139 to your computer and use it in GitHub Desktop.
Save larzconwell/3102139 to your computer and use it in GitHub Desktop.
package main
import "fmt"
func swap(x, y, string) (string, string) {
return y, x
}
func main() {
a, b := swap("world", "Hello")
fmt.Println(a, b)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment