Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
SysProcAttr = &syscall.SysProcAttr{}
)
Functions ¶
func CreateSymlink ¶
*
CreateSymlink creates a symbolic link, requires administrator privileges
@param oldPath The path to the existing file or directory @param newPath The path where the symbolic link should be created
func GetSymlinkTarget ¶
GetSymlinkTarget retrieves the target path of a symbolic link
func IsAdmin ¶
func IsAdmin() bool
IsAdmin checks if the current process has administrator privileges
func RequireAdmin ¶
func RequireAdmin() error
RequireAdmin checks for administrator privileges, returns an error if not present
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.