title: How to slice string till particular character in Go?
body: <p>I want to extract a string till a character is found. For example: </p>
  
  <pre><code>message := "Rob: Hello everyone!"
  user := strings.Trim(message,
  </code></pre>
  
  <p>I want to be able to store <code>"Rob"</code> (read till <code>':'</code> is found).</p>