title: How to remove a cookie in Go
body: <p>I've set a cookie and can see it in my browser. I couldn't find anyway to remove it. What I've tried was:</p>
  
  <pre><code>deleteCookie, _ := r.Cookie("login")
  deleteCookie.Value = "" 
  deleteCookie.MaxAge = -1
  http.SetCookie(w, deleteCookie)
  </code></pre>
  
  <p>But the cookie is still there with it's original value after running this code.</p>