github.com/xg0n/routine@v0.0.0-20240119033701-c364deb94aee/api_parent_goid.go (about)

     1  package routine
     2  
     3  // ParentGoid return the parent goroutine's unique id.
     4  func ParentGoid() uint64 {
     5  	return getg().parentGoid
     6  }