I want to download a file from an url in go lang using the go http package and save the image to disk for later display on my webpage. How do I do this?
I need to do this because I want to download images from instagram and save them to my public folder for display on my webpage.
I created an answer below for others to use the code I came up with.