daily pastebin goal
94%
SHARE
TWEET

Untitled

a guest Feb 21st, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. func GetGoId() uint64 {
  2.     b := make([]byte, 64)
  3.     b = b[:runtime.Stack(b, false)]
  4.     b = bytes.TrimPrefix(b, []byte("goroutine "))
  5.     b = b[:bytes.IndexByte(b, ' ')]
  6.     n, _ := strconv.ParseUint(string(b), 10, 64)
  7.     return n
  8. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top