title: How to validate a image url in golang?
body: <p>I want to validate a image url that my code will accept the that image url which  having <code>http</code> and <code>https</code> if there is any other url is present that would not be accepted for example:-</p>
  
  <pre><code>fnc main(){
     var url1,url2,url3 string
     url1 = "/image.png" // not accepted
     url2 = "http://abc/image.jpg"  // accepted
     url3 = "https://abc/image.jpg" // accepted
  }
  </code></pre>
  
  <p>What regular expression is used for this validation?</p>