hack

package
v0.0.0-...-9d95335 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurGoroutineID

func CurGoroutineID() uint64

CurGoroutineID get current goroutine id by walk stack. from https://github.com/golang/net/blob/master/http2/gotrack.go This func get goroutine id by parse current stack string, the performance is not so good. asm version, https://github.com/petermattis/goid

func ParseUintBytes

func ParseUintBytes(s []byte, base int, bitSize int) (n uint64, err error)

ParseUintBytes is like strconv.ParseUint, but using a []byte.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL