Created
June 5, 2018 15:40
-
-
Save mlsteele/073804ac93e4b121cabf1e6ee73f3055 to your computer and use it in GitHub Desktop.
gowtf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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