Block users from running your app with root permissions
go get github.com/shamsher31/gosudoblock
package main
import (
"fmt"
"github.com/shamsher31/gosudoblock"
)
func main() {
sudoblock.Is()
// ✖ You are not allowed to run this app with root permissions
}
This package is inspired by sudo-block npm module.
MIT © Shamsher Ansari