title: How to get intersection of two slice in golang?
body: <p>Is there any efficient way to get intersection of two slices in Go?</p>
  
  I want to avoid nested for loop like solution
  
  <pre><code>slice1 := []string{"foo", "bar","hello"}
  slice2 := []string{"foo", "bar"}
  
  intersection(slice1, slice2)
  =&gt; ["foo", "bar"]
  </code></pre>
  
  order of string does not matter