User Tools

Site Tools


Table of Contents


Letter “g” – is generally often used as a shorthand to a phrase “(current) goroutine” – see:

Strictly related:

  1. G (struct G) – is an internal C struct containing some data related to a goroutine – see: pkg/runtime/runtime.h
  2. g (G g) – is a thread-local variable of type struct G; “g is usually the current goroutine, but it's real purpose is to be the definitive place to find the current stack bounds during the stack growth check at the beginning of most functions. (ref.)

See also

go/internals/g.txt · Last modified: 2020/11/23 17:23 by