Create a new directory called point.
The code below must be copied into a file called main.go inside the point directory.
The necessary changes must be applied so that the program works.
The function setPoint() must work with int.
func setPoint(ptr *point) {
ptr.x = 42
ptr.y = 21
}
func main() {
points := &point{}
setPoint(points)
fmt.Printf("x = %d, y = %d\n",points.x, points.y)
}
$ go run .
x = 42, y = 21
$