github.com/liangmanlin/routine@v1.1.0/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 }