import ( "image" "fmt" ) func main() { img := image.Rect(0, 0, 100, 100) point1 := image.Point{50, 50} point2 := image.Point{200, 200} if img.In(point1) { fmt.Println("Point 1 is inside the image") } else { fmt.Println("Point 1 is outside the image") } if img.In(point2) { fmt.Println("Point 2 is inside the image") } else { fmt.Println("Point 2 is outside the image") } }In this example, we are creating an image rectangle with boundaries (0, 0) and (100, 100). We are then creating two points, one inside the image and one outside the image. The `img.In()` function is used to determine whether each point is inside or outside the image. Package library: `image` package.