package main import "fmt" func myIntPointer() { var myInt int var myIntPointer *int myInt = 42 myIntPointer = &myInt fmt.Println(*myIntPointer) }