package main import ( "fmt" "image" ) func main() { rect1 := image.Rect(0, 0, 50, 50) rect2 := image.Rect(25, 25, 75, 75) intersection := rect1.Intersect(rect2) fmt.Println(intersection) }In this example, we create two rectangles using the `image.Rect()` function and save them in the `rect1` and `rect2` variables. We then find the intersection of these rectangles using the `Intersect()` method and save it in the `intersection` variable. Finally, we print the intersection to the console. This functionality is provided in the standard Go image library.