Last active
August 30, 2019 14:28
-
-
Save aurimasbachanovicius/4cae6347a2d4e2e7276cb8e7a5051e66 to your computer and use it in GitHub Desktop.
Go function
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
func main() { | |
f := func(int x) { | |
fmt.Printf("x is %d\n", x) | |
} | |
y := 2 | |
x = y | |
f(y) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment