Documentation
¶
Index ¶
- func CaptureStack() string
- func DebugStackLines(stacks string) []string
- func FileExists(filename string) bool
- func GetExecPath() string
- func GetWD() string
- func JsonValidBytes(j []byte) bool
- func JsonValidString(j string) bool
- func NormalizeWhitespace(s string) string
- func StackMsg() string
- func UnsafeBytes(s string) []byte
- func UnsafeString(b []byte) string
- func ValidConstant(constName interface{}, isZero ...bool) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptureStack ¶
func CaptureStack() string
CaptureStack 捕获当前 goroutine 的调用栈信息,跳过前3层调用栈 固定 64 个 uintptr 数组,栈上分配
func DebugStackLines ¶
debugStackLines 获取当前 goroutine 的调用栈信息行切片
func NormalizeWhitespace ¶
NormalizeWhitespace 规范化字符串中的空白字符,将连续的空白字符替换为单个空格
func UnsafeBytes ¶
UnsafeBytes returns a byte pointer without allocation.
copy from goFiber/fiber utils
func UnsafeString ¶
UnsafeString returns a string pointer without allocation
copy from goFiber/fiber utils
func ValidConstant ¶
ValidConstant 检查常量是否有效,支持可选参数isZero,true表示检查是否为零值或nil,false表示只检查是否为nil
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.