package
Version:
v0.0.0-...-ce13bd1
Opens a new window with list of versions in this module.
Published: Oct 6, 2023
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
AverageV2016 Average 2016
对两个无符号整数进行除法,同时通过 按位与 修正低位数字,保证两个证书都为奇数时,仍然正确
GoID
利用 runtime.Stack 的堆栈信息。`runtime.Stack(buf []byte, all bool) int` 将当前的堆栈信息写入到一个 slice 中,
堆栈的第一行为 `goroutine #### […` (如 goroutine 51 [running]:), 其中 `####` 就是当前的 goroutine ID。
获取堆栈信息会影响性能,所以建议在 debug 的时候才用
获取 goroutine ID
Source Files
¶
Click to show internal directories.
Click to hide internal directories.