This is a simple Go script to download a random image.
Generate and download a random image from Lorem Picsum providing a width
and height
parameters.
You just need Go installed on your computer.
In the root directory of the repository run the following command
go run .\cmd\main.go --width={width} --height={height}
Change the values of the width
and height
parameters to generate the image at the specified size.
You can find the generated image at the root .\img
directory.
The generated image will have the name {width}x{height}.png
Where {width}
and {height}
are the width and height parameters provided.