Documentation
¶
Index ¶
- func BoolPointerOrBackup(val *bool, backupValue bool) *bool
- func BoolToPointer(val bool) *bool
- func CleanEmptyEntriesFromStringSlice(slice []string) []string
- func CommandExecutionPathFromContext(ctx context.Context) string
- func FileExists(filename string) bool
- func NewContextWithCommandExecutionPath(ctx context.Context, path string) context.Context
- func RemoveElementFromStringSlice(slice []string, el int) []string
- func StringPointerOrBackup(val *string, backupValue string) *string
- func StringSliceIncludesElement(list []string, element string) bool
- func StringSliceWithValuesOrBackup(list []string, backupValue []string) []string
- func StringToPointer(str string) *string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BoolPointerOrBackup ¶
BoolPointerOrBackup returns the val attribute unless nil, else an pointer to the backupValue
func BoolToPointer ¶
BoolToPointer returns a given bool value as pointer
func CleanEmptyEntriesFromStringSlice ¶
CleanEmptyEntriesFromStringSlice removes empty strings from specified slice
func CommandExecutionPathFromContext ¶
CommandExecutionPathFromContext returns the commandExecutionPath in ctx, if any
func FileExists ¶
FileExists checks if a file exists and is not a directory
func NewContextWithCommandExecutionPath ¶
NewContextWithCommandExecutionPath sets the given path argument as value into a new context.Context
func RemoveElementFromStringSlice ¶
RemoveElementFromStringSlice removes an element at the specific index
func StringPointerOrBackup ¶
StringPointerOrBackup returns the val attribute unless nil, else an pointer to the backupValue
func StringSliceIncludesElement ¶
StringSliceIncludesElement checks if a given slice of String includes the specified element
func StringSliceWithValuesOrBackup ¶
StringSliceWithValuesOrBackup returns the list if not empty or the backup value
func StringToPointer ¶
StringToPointer returns a given string as pointer
Types ¶
This section is empty.