package main
import (
"bytes"
"fmt"
"runtime"
"strconv"
)
func main() {
fmt.Println(getGID())
}
func getGID() uint64 {
b := make([]byte, 64)
b = b[:runtime.Stack(b, false)]
b = bytes.TrimPrefix(b, []byte("gorout...
11-02 3,785 views
package main
import (
"bytes"
"fmt"
"runtime"
"strconv"
)
func main() {
fmt.Println(getGID())
}
func getGID() uint64 {
...