Skip to content

Instantly share code, notes, and snippets.

@aurimasbachanovicius
Last active August 30, 2019 14:28
Show Gist options
  • Save aurimasbachanovicius/4cae6347a2d4e2e7276cb8e7a5051e66 to your computer and use it in GitHub Desktop.
Save aurimasbachanovicius/4cae6347a2d4e2e7276cb8e7a5051e66 to your computer and use it in GitHub Desktop.
Go function
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