import ( "image" "image/color" ) func main() { // Create a new image object img := image.NewRGBA(image.Rect(0, 0, 100, 100)) // Set the pixel at (50, 50) to red img.SetRGBA(50, 50, color.RGBA{255, 0, 0, 255}) }In this example, we create a new RGBA image with dimensions 100x100. We then set the pixel at (50, 50) to red by calling the SetRGBA function, passing in the x and y coordinates of the pixel as well as a new RGBA color value. The SetRGBA function is a part of the standard Go image library, specifically the "image" and "color" packages.