title: How to convert a UUID string into UUID type
body: <p>I have an array of string UUIDs that I want to change to UUID. Example of the data:</p>
  <pre><code>[&quot;69359037-9599-48e7-b8f2-48393c019135&quot; &quot;1d8a7307-b5f8-4686-b9dc-b752430abbd8&quot;]
  </code></pre>
  <p>How can I change or parse it? I tried using <code>uuid.fromString()</code> method:</p>
  <pre><code>if len(a) == 2 {
      user1 := a[0]
      a[0], _ = uuid.FromString(a[0])
  }
  </code></pre>
  <p>However, this gives me an error</p>
  <blockquote>
  <p>FromString returns UUID parsed from string input. Input is expected in
  a form accepted by UnmarshalText.</p>
  </blockquote>