title: : first path segment in URL cannot contain colon
body: <p>Here's my code ( part of it ) :</p>
  
  <pre><code>type SitemapIndex struct {
      // Locations []Location `xml:"sitemap"`
      Locations []string `xml:"sitemap&gt;loc"`
  }
  
  ~~~ SNIP ~~~
  func main(){
      var s SitemapIndex
      resp, _ := http.Get("https://www.washingtonpost.com/news-sitemaps/index.xml")
      bytes, _ := ioutil.ReadAll(resp.Body)
      xml.Unmarshal(bytes, &amp;s)
      for _, Location := range s.Locations {
          fmt.Printf("%s\n", Location)
          resp, err := http.Get(Location)
          if err != nil {
              log.Fatal(err)
          } else {
              bytes, _ := ioutil.ReadAll(resp.Body)
              xml.Unmarshal(bytes, &amp;n)
              for idx := range n.Titles {
                  newsMap[n.Titles[idx]] = NewsMap{n.Keywords[idx], n.Locations[idx]}
              }
          }
          for idx, data := range newsMap {
              fmt.Println("\n\n\n", idx)
              fmt.Println("\n", data.Keyword)
              fmt.Println("\n", data.Location)
          }
      }
  </code></pre>
  
  <p>Now, when I run this code I get this output :</p>
  
  <pre><code>
  https://www.washingtonpost.com/news-sitemaps/politics.xml
  
  2019/01/28 02:37:13 parse 
  https://www.washingtonpost.com/news-sitemaps/politics.xml
  : first path segment in URL cannot contain colon
  exit status 1
  </code></pre>
  
  <p>I read a few posts and did some experiment myself, like I made another file with the following code </p>
  
  <pre><code>package main
  
  import ("fmt"
      "net/url")
  
  func main(){
      fmt.Println(url.Parse("https://www.washingtonpost.com/news-sitemaps/politics.xml"))
  }
  </code></pre>
  
  <p>And it didn't throw any error, so I understand the error is not with the url .</p>
  
  <p>Now, I just started learning <strong>Go</strong> using sentdex's tutorials , a few hours ago and so don't have much idea as of now. Here's the <a href="https://youtu.be/2umnbZxdu-s?list=PLQVvvaa0QuDeF3hP0wQoSxpkqgRcgxMqX&amp;t=485" rel="noreferrer">video link</a></p>
  
  <p>Thanks and regards.
  Temporarya</p>