Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save shockalotti/59930ef2effed604156e to your computer and use it in GitHub Desktop.
Save shockalotti/59930ef2effed604156e to your computer and use it in GitHub Desktop.
Go Golang - basic passing argument to function
package main
import "fmt"
func f(x int) {
fmt.Println(x)
}
func main() {
x:=5
f(x)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment