title: Remove elements in slice
body: <p>I am complete newbie in Golang, I am trying to remove elements in one slice based on the elements in another slice.
  e.g. </p>
  
  <p>input slice : <code>urlList := []string{"test", "abc", "def", "ghi"}</code></p>
  
  <p>elements to remove slice : <code>remove := []string{"abc", "test"}</code></p>
  
  <p>expected output slice : <code>urlList := []string{"def", "ghi"}</code></p>
  
  <p>This is what I tried.</p>
  
  <pre><code>func main() {
  
      urlList := []string{"test", "abc", "def", "ghi"}
      remove := []string{"abc", "test"}
  loop:
      for i, url := range urlList {
          for _, rem := range remove {
              if url == rem {
                  urlList = append(urlList[:i], urlList[i+1:]...)
                  continue loop
              }
          }
      }
      for _, v := range urlList {
          fmt.Println(v)
      }
  }
  </code></pre>
  
  <p>But it's not working as I expected. I don't know what I am missing.</p>