Documentation ¶
Index ¶
- func AtArrayPosition(value interface{}, array interface{}) (index int)
- func CreateFileNotExist(filePath string) error
- func ExecuteCommand(cmd string) ([]interface{}, error)
- func FilePathExist(filePath string) bool
- func InArray(value interface{}, array interface{}) bool
- func InSlice[T comparable](values []T, value T) bool
- func IndexOf[T comparable](values []T, value T) int
- func IsCommandExist(cmd string) bool
- func IsNil(i interface{}) bool
- func JoinPath(baseUrl string, elem ...string) (result string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtArrayPosition ¶
func AtArrayPosition(value interface{}, array interface{}) (index int)
AtArrayPosition finds the position(int) of value in an Array(Slice)
func CreateFileNotExist ¶
CreateFileNotExist creates file if not exist
func ExecuteCommand ¶
ExecuteCommand executes command and return results
func FilePathExist ¶
FilePathExist returns true if file is exist, else false
func InArray ¶
func InArray(value interface{}, array interface{}) bool
InArray checks is value exists in an Array (Slice)
func InSlice ¶
func InSlice[T comparable](values []T, value T) bool
InSlice checks if an element in a slice
func IndexOf ¶
func IndexOf[T comparable](values []T, value T) int
IndexOf returns an elements position in a slice Return -1 if element not found in slice
func IsCommandExist ¶
IsCommandExist returns true if `cmd` is exist in OS
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.