//go:build linux package utils import "os" // IsAdmin 检测当前用户是否为 root(UID=0) func IsAdmin() bool { return os.Geteuid() == 0 }