How to remove redundant spaces/whitespace from a string in Golang?
<p>I was wondering how to remove:</p>

<ul>
<li>All <strong>leading/trailing</strong> whitespace or new-line characters, null characters, etc.</li>
<li>Any redundant spaces within a string (ex. "hello[space][space]world" would be converted to "hello[space]world")</li>
</ul>

<p>Is this possible with a single Regex, with unicode support for international space characters, etc.?</p>