github.com/choleraehyq/piD@v0.0.11/runtime_gccgo_go1.8.go (about)

     1  // +build gccgo,go1.8
     2  
     3  package goid
     4  
     5  // https://github.com/gcc-mirror/gcc/blob/gcc-7-branch/libgo/go/runtime/runtime2.go#L329-L422
     6  
     7  type g struct {
     8  	_panic       uintptr
     9  	_defer       uintptr
    10  	m            uintptr
    11  	syscallsp    uintptr
    12  	syscallpc    uintptr
    13  	param        uintptr
    14  	atomicstatus uint32
    15  	goid         int64 // Here it is!
    16  }