Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentUser ¶
CurrentUser returns the current user. If os/user.Current() fails (e.g. in a statically linked binary in an environment where user information is resolved via NSS/LDAP rather than /etc/passwd), it falls back to inspecting environment variables ($USER, $LOGNAME, $USERNAME) and standard os functions (os.Getuid, os.Getgid, os.UserHomeDir).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.