title: Secure Compare of Strings in Go
body: <p>Is the a built-in way of doing constant time string comparison in Go?</p>
  
  <p>I've used the <a href="https://github.com/plataformatec/devise/blob/7d114271164c7ae39801b07b620d4eddf429a96a/lib/devise.rb#L476-L485"><code>Devise.secure_compare</code></a> method when I've needed this functionality in Ruby.</p>