github.com/sujit-baniya/log@v1.0.73/goid.go (about)

     1  //go:build amd64 || arm64 || arm || 386 || mipsle
     2  // +build amd64 arm64 arm 386 mipsle
     3  
     4  package log
     5  
     6  func goid() int
     7  
     8  // Goid returns the current goroutine id.
     9  // It exactly matches goroutine id of the stack trace.
    10  func Goid() int64 {
    11  	return int64(goid())
    12  }