title: Convert uint16 array to string
body: <p>I have an array of uint16 coming from WinAPI <code>PROCESSENTRY32.szExeFile</code> that I wanna convert to a string.</p>
  
  <p>Here's my var type </p>
  
  <pre><code>var hello [260]uint16
  </code></pre>
  
  <p>now I need to convert hello to a string. How can I do that?</p>
  
  <p><strong>Edit</strong></p>
  
  <p>Here's what I've tried:</p>
  
  <pre><code>func szExeFileToString(ByteString [260]uint16) string {
      b := make([]byte, len(ByteString))
  
      for i, v := range ByteString {
          b[i] = byte(v)
      }
  
      return string(b)
  }
  </code></pre>
  
  <p>However, this returns pretty weird strings...
  <a href="https://i.stack.imgur.com/U66GU.png" rel="nofollow noreferrer">result</a> (the function should convert Windows process names in the <code>PROCESSENTRY32.szExeFile</code> (-> <code>[260]uint16</code>)  type to string)</p>