From 67af9b49ff438cbda315f92082c77461ab8f964e Mon Sep 17 00:00:00 2001 From: Huan Du Date: Thu, 20 Apr 2017 17:49:04 +0800 Subject: [PATCH] support go1.8.1 --- info.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/info.go b/info.go index 4db34ed..9a96e0e 100644 --- a/info.go +++ b/info.go @@ -65,6 +65,8 @@ func GoroutineId() int64 { return (*runtime1_7_5.Goroutine)(gp).Goid() case _GO_VERSION1_8: return (*runtime1_8.Goroutine)(gp).Goid() + case _GO_VERSION1_8_1: + return (*runtime1_8_1.Goroutine)(gp).Goid() default: panic("unsupported go version " + goVersion().String())