This commit is contained in:
spiritysdx
2024-06-25 19:28:51 +08:00
parent 762c88d7f6
commit 606e1fc3cd
11 changed files with 128 additions and 36 deletions

View File

@@ -11,11 +11,10 @@ import (
// TODO
// 迁移Shell的完整检测逻辑使用执行命令的方式查询最后都失败才使用gopsutil查询
func basic() {
language := "zh"
func Basic(language string) {
ipInfo, _, _ := network.NetworkCheck("both", false, language)
res := system.CheckSystemInfo(language)
fmt.Println("--------------------------------------------------")
//fmt.Println("--------------------------------------------------")
fmt.Printf(strings.ReplaceAll(res+ipInfo, "\n\n", "\n"))
fmt.Println("--------------------------------------------------")
//fmt.Println("--------------------------------------------------")
}