title: Avoid messy output when writing to STDOUT from goroutines
body: <p>When writing to <code>stdout</code> or a log, how can I make sure that the output from several <strong>goroutines</strong>
  aren't messing up the output?</p>
  
  <p>e.g. make sure the output will be like this</p>
  
  <pre><code>Routine 1 found 1235 entries
  Routine 3 found 999 entries
  Routine 2 found 24 entries
  </code></pre>
  
  <p>and NOT like this</p>
  
  <pre><code>Routine 1 fouRoutine 3 found 999 entries
  nd 1235 entriRoutine 2 found 24 entries
  es
  </code></pre>
  
  <p>I mean the output from one <strong>goroutine</strong> is not writing at the same time as another</p>
  
  <p>i.e. is there a library or a standard way to get a semaphore around the output?</p>