title: How do I check if a goroutine is created successfully?
body: <p>In Go, <code>go</code> is the keyword to spawn a goroutine. However, it seems the keyword doesn't return any value, so how could I detect if the goroutine is spawned correctly?</p>
  
  <p>It seems Go uses the following ways to check whether a func is successful or not.</p>
  
  <pre><code>value, err = myFunc(value)
  </code></pre>
  
  <p>Is there a similar usage for the <code>go</code> keyword to detect a creation error? It seems <code>go</code> will throw a runtime exception if it failed.</p>
  
  <p>I want to make a test to find out the maximum number of goroutine I could create for a CPU.</p>