goid Util to find ID of goroutine: import "github.com/go-eden/common/goid" ... var gid = goid.Gid() // goroutine's id