github.com/isyscore/isc-gobase@v1.5.3-0.20231218061332-cbc7451899e9/goid/goid_arm64.go (about)

     1  //go:build arm64 && gc
     2  
     3  package goid
     4  
     5  // Backdoor access to runtimeĀ·getg().
     6  func getg() *g
     7  
     8  func NativeGoid() int64 {
     9  	return getg().goid
    10  }