Skip to content

extract goroutine id to the out world although it's dangerous and useless.

Notifications You must be signed in to change notification settings

cch123/goroutineid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

Extract goroutine id to the out world although it's dangerous and useless.

Demo

package main
import "github.com/cch123/goroutineid"

func main() {
    id := goroutineid.GetGoID()
    println(id) // 1
}

Supported Versions

    "go1.4":    128,
    "go1.4.1":  128,
    "go1.4.2":  128,
    "go1.4.3":  128,
    "go1.5":    184,
    "go1.5.1":  184,
    "go1.5.2":  184,
    "go1.5.3":  184,
    "go1.5.4":  184,
    "go1.6":    192,
    "go1.6.1":  192,
    "go1.6.2":  192,
    "go1.6.3":  192,
    "go1.6.4":  192,
    "go1.7":    192,
    "go1.7.1":  192,
    "go1.7.2":  192,
    "go1.7.3":  192,
    "go1.7.4":  192,
    "go1.7.5":  192,
    "go1.7.6":  192,
    "go1.8":    192,
    "go1.8.1":  192,
    "go1.8.2":  192,
    "go1.8.3":  192,
    "go1.8.4":  192,
    "go1.8.5":  192,
    "go1.9":    152,
    "go1.9.1":  152,
    "go1.9.2":  152,
    "go1.10":   152,
    "go1.10.1": 152,

About

extract goroutine id to the out world although it's dangerous and useless.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published