Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EscalateIfNeeded ¶
func EscalateIfNeeded() error
EscalateIfNeeded checks if the program is running as root, and re-runs the program with sudo if it is not.
If the program is already running with root privileges, the program will continue as normal.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.