Skip to content

Instantly share code, notes, and snippets.

@mlsteele
Created June 5, 2018 15:40
Show Gist options
  • Save mlsteele/073804ac93e4b121cabf1e6ee73f3055 to your computer and use it in GitHub Desktop.
Save mlsteele/073804ac93e4b121cabf1e6ee73f3055 to your computer and use it in GitHub Desktop.
gowtf
package main
import (
"fmt"
)
func f() (int, int) {
return 3, 4
}
func main() {
x := 1
z := &x
x, y := f()
fmt.Printf("%v, %v, %v\n", x, y, *z)
}
package main
import (
"fmt"
)
func f() (int, int) {
return 3, 4
}
func main() {
x := 1
z := &x
if true {
x, y := f()
fmt.Printf("%v, %v, %v\n", x, y, *z)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment