assign a string type golang
<p>I'm having a hard time assigned a string to a type string. So I have this type:</p>

<pre><code>type Username string
</code></pre>

<p>I then have a function that returns a string</p>

<p>What I'm trying to do is set username to that returned string:</p>

<pre><code>u := &amp;Username{returnedString}
</code></pre>

<p>I also tried</p>

<pre><code>var u Username
u = returnedString
</code></pre>

<p>But I always get an error. </p>