MetaCubeX/mihomo 这个开源项目,Alpha 分支的 main.go 中,只是引入了"gayhub/metacubex/mihomo/hub/executor"这个包,而且在 executor.go 这个文件中也没看到有 init 方法。
而在 main.go 中直接就调用了 executor.ApplyConfig 和 executor.Shutdown 方法,
求巨佬指点一下 executor 这个东西是咋初始化出来的😭
MetaCubeX/mihomo 这个开源项目,Alpha 分支的 main.go 中,只是引入了"gayhub/metacubex/mihomo/hub/executor"这个包,而且在 executor.go 这个文件中也没看到有 init 方法。
而在 main.go 中直接就调用了 executor.ApplyConfig 和 executor.Shutdown 方法,
求巨佬指点一下 executor 这个东西是咋初始化出来的😭
|
zuiwuJul 29, 2024
1
你好歹贴个代码 main 文件目录链接啊,啥也没有谁会再自己去搜索帮你看
|
|
iyaozhenJul 29, 2024
2
他又不是个类 class ,为啥要初始化?
|
|
fgwmlhdkkkwJul 29, 2024 via Android
3
全局搜下 init
|
|
Constellation39Jul 29, 2024
4
hub/executor/executor.go
``` package executor func ApplyConfig(cfg *config.Config, force bool) {} func Shutdown() {} ``` 基础语法详见 https://go.dev/doc/ |
|
5
|
|
vx7298Jul 29, 2024
7
是不看看 listenser ,,config 哪里有,ReCreateTun ,这个吧
|