func runtime.NumGoroutine

one use

	runtime (current package)
		debug.go#L67: func NumGoroutine() int {