title: Where is g struct define in golang source code?
body: <p>In golang source code, there is some code like:</p>
  
  <pre><code>MOVL    (g_sched+gobuf_sp)(SI), SP  // sp = m-&gt;g0-&gt;sched.sp
  </code></pre>
  
  <p>And in <code>runtime/stubs.go</code> I found</p>
  
  <pre><code>func getg() *g
  </code></pre>
  
  <p>But i can not find <code>getg</code> function or <code>g</code> struct, where is it?</p>