Documentation ¶
Index ¶
- Constants
- func Delete(path string) error
- func FileExists(path string) bool
- func GetCommandArgument() string
- func GetExecutionPath() string
- func GetFlagArrayValue(flag string) []string
- func GetFlagSwitch(flag string, defaultValue bool) bool
- func GetFlagValue(flag string, defaultValue string) string
- func GetModuleArgument() string
- func JoinPath(items ...string) string
- func MapFlagValue(flag string) (string, string)
- func ToOsPath(path string) string
- type Startup
Constants ¶
View Source
const ( FlagPrefix = "--" FlagValueSeparator = "=" )
Flag constants
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶ added in v0.0.5
FileExists Checks if a file/directory exists
func GetCommandArgument ¶
func GetCommandArgument() string
GetCommandArgument Gets the command argument for the software
func GetExecutionPath ¶ added in v0.0.5
func GetExecutionPath() string
GetExecutionPath gets executable path
func GetFlagArrayValue ¶
GetFlagArrayValue Gets a array of values of a flag from the command line arguments
func GetFlagSwitch ¶
GetFlagSwitch Gets a switch value of a flag from the command line arguments
func GetFlagValue ¶
GetFlagValue Gets a value of a flag from the command line arguments
func GetModuleArgument ¶
func GetModuleArgument() string
GetModuleArgument Gets the module argument for the software
func MapFlagValue ¶
MapFlagValue Maps Keypair values from the flag
Types ¶
Click to show internal directories.
Click to hide internal directories.