Documentation ¶
Overview ¶
Drop in replacement for the os/user package. Useful when building without cgo.
Index ¶
Constants ¶
View Source
const UserDatabase = "/etc/passwd"
Variables ¶
View Source
var InvalidUserDatabaseError = errors.New("invalid user database")
Functions ¶
func IAmPrivileged ¶
func IAmPrivileged() bool
Types ¶
Click to show internal directories.
Click to hide internal directories.