Documentation ¶
Index ¶
Constants ¶
View Source
const ( // EDIT is the action "edit" for ShellExecute EDIT = "edit" // EXPLORE is the action "explore" for ShellExecute EXPLORE = "explore" // OPEN is the action "open" for ShellExecute OPEN = "open" // PRINT is the action "print" for ShellExecute PRINT = "print" // PROPERTIES is the action "properties" for ShellExecute PROPERTIES = "properties" // RUNAS is the action "runas" for ShellExecute RUNAS = "runas" )
View Source
const ( HIDE = 0 SHOWNORMAL = 1 SHOWMINIMIZED = 2 MAXIMIZE = 3 SHOWNOACTIVATE = 4 SHOW = 5 MINIMIZE = 6 SHOWMINNOACTIVE = 7 SHOWNA = 8 RESTORE = 9 SHOWDEFAULT = 10 FORCEMINIMIZE = 11 )
Variables ¶
This section is empty.
Functions ¶
func IsElevated ¶
func IsElevationRequired ¶ added in v0.1.2
IsElevationRequired reports whether err is the error object "os/exec".Command.Run() returns when the elevation is required.
func ShellExecute ¶
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.