1 2 3 4 5 6 7 8 9 10 11 12 13 14
//go:build testsuite package testsuite import ( "log" "os" ) func init() { if os.Geteuid() != 0 { log.Fatal("this program must run as root") } }