mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-09-25 04:31:52 +08:00
refactor: 移动debug模块到common/debug子包
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"syscall"
|
||||
|
||||
"github.com/shadow1ng/fscan/common"
|
||||
"github.com/shadow1ng/fscan/common/debug"
|
||||
"github.com/shadow1ng/fscan/common/i18n"
|
||||
"github.com/shadow1ng/fscan/core"
|
||||
"github.com/shadow1ng/fscan/web"
|
||||
@@ -18,8 +19,8 @@ import (
|
||||
|
||||
func main() {
|
||||
// 启动 pprof(仅调试版本)
|
||||
startPprof()
|
||||
defer stopPprof() // 程序退出时保存性能分析数据
|
||||
debug.Start()
|
||||
defer debug.Stop()
|
||||
|
||||
// 解析命令行参数
|
||||
var info common.HostInfo
|
||||
|
||||
Reference in New Issue
Block a user