update v-advance

This commit is contained in:
lzx
2025-12-01 15:45:05 +08:00
parent 16173b7ccd
commit de010e39ee
22 changed files with 1963 additions and 175 deletions

View File

@@ -0,0 +1,12 @@
//go:build linux
package utils
import "os"
// IsAdmin 检测当前用户是否为 rootUID=0
func IsAdmin() bool {
return os.Geteuid() == 0
}