github.com/timandy/routine@v1.1.4-0.20240507073150-e4a3e1fe2ba5/api_goid.go (about) 1 package routine 2 3 // Goid return the current goroutine's unique id. 4 func Goid() int64 { 5 return getg().goid 6 }