title: How do I download a file with a http request in go language
body: <p>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?</p>
  
  <p>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.</p>
  
  <p>I created an answer below for others to use the code I came up with.</p>