mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-13 21:00:26 +08:00
refactor: 后端包结构重构、去除无用的文件
This commit is contained in:
9
server/pkg/utils/stack_trace_utils.go
Normal file
9
server/pkg/utils/stack_trace_utils.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package utils
|
||||
|
||||
import "runtime"
|
||||
|
||||
// 获取调用堆栈信息
|
||||
func GetStackTrace() string {
|
||||
var buf [2 << 10]byte
|
||||
return string(buf[:runtime.Stack(buf[:], false)])
|
||||
}
|
||||
Reference in New Issue
Block a user