title: How can I convert a zero-terminated byte array to string?
body: <p>I need to read <code>[100]byte</code> to transfer a bunch of <code>string</code> data.</p>
  <p>Because not all of the <code>string</code>s are precisely 100 characters long, the remaining part of the <code>byte array</code> is padded with <code>0</code>s.</p>
  <p>If I convert <code>[100]byte</code> to <code>string</code> by: <code>string(byteArray[:])</code>, the tailing <code>0</code>s are displayed as <code>^@^@</code>s.</p>
  <p>In C, the <code>string</code> will terminate upon <code>0</code>, so what's the best way to convert this <code>byte array</code> to <code>string</code> in Go?</p>