title: Custom string types in Go
body: <p>How can I create a custom type in Go that is restricted to a certain list of string values? e.g.</p>
  <pre><code>type Suit = &quot;Spade&quot; | &quot;Diamond&quot; | &quot;Club&quot; | &quot;Heart&quot;
  </code></pre>