Documentation
¶
Overview ¶
Package osutil holds operating specific utilities.
Index ¶
- func DefaultBinDir() string
- func DefaultEditor() string
- func ExecFormatError() string
- func Executable(elements ...string) string
- func ExecutableScript(elements ...string) string
- func HomeEnvVar() string
- func HomeEnvVarName() string
- func PathEnvVar() string
- func PathEnvVarName() string
- func PathSeparator() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultBinDir ¶
func DefaultBinDir() string
DefaultBinDir returns the os specific default bin directory. For test benchmarks.
func DefaultEditor ¶
func DefaultEditor() string
DefaultEditor returns the os specific default text editor.
func ExecFormatError ¶
func ExecFormatError() string
ExecFormatError returns the os specific error for a binary that is not executable.
func Executable ¶
Executable returns the given path parts joined with the os specific path separator and with the os specific executable script extension appended.
func ExecutableScript ¶
ExecutableScript returns the given path parts joined with the os specific path separator and with the os specific executable script extension appended.
func HomeEnvVar ¶
func HomeEnvVar() string
HomeEnvVar returns the os specifiv home environment variable.
func HomeEnvVarName ¶
func HomeEnvVarName() string
HomeEnvVarName returns the os specific name of the home environment variable.
func PathEnvVar ¶
func PathEnvVar() string
PathEnvVar returns the os specific path environment variable.
func PathEnvVarName ¶
func PathEnvVarName() string
PathEnvVarName returns the os specific name of the path environment variable.
func PathSeparator ¶
func PathSeparator() string
PathSeparator returns the os.PathSeparator as a string.
Types ¶
This section is empty.