title: Any difference in using an empty interface or an empty struct as a map's value?
body: <p>I am using this construct to simulate a set</p>
  
  <pre><code>type MyType uint8
  map[MyType]interface{}
  </code></pre>
  
  <p>I then add in all my keys and map them to <code>nil</code>.</p>
  
  <p>I've learnt that it is also possible to use</p>
  
  <pre><code>map[MyType]struct{}
  </code></pre>
  
  <p>Any benefits of using the empty struct versus <code>interface{}</code>.</p>