hoster/internals/helpers/root.go

8 lines
83 B
Go
Raw Permalink Normal View History

2024-08-28 12:31:17 +02:00
package helpers
import "os"
func IsRootUser() bool {
return os.Geteuid() == 0
}