github.com/xg0n/routine@v0.0.0-20240119033701-c364deb94aee/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 }