Documentation
¶
Index ¶
- func GetTimeFromString(input string) (time.Time, error)
- func GetToken() string
- func IsPathADir(path string) (bool, error)
- func IsPathAFile(path string) (bool, error)
- func IsPathExist(path string) bool
- func IsSubstring(substring string, completeString string) (bool, error)
- func PrintError(err error)
- func RemoveDetachedFlag(args []string) []string
- func RemoveDuplicate(input []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTimeFromString ¶
GetTimeFromString transform a string to a duration
func GetToken ¶
func GetToken() string
GetToken return a random token using md5 and the current time as a seed
func IsPathADir ¶
IsPathADir returns a bool depending if a path is a dir and an error if the file do not exist
func IsPathAFile ¶
IsPathAFile returns a bool depending if a path is a file and an error if the file do not exist
func IsPathExist ¶
IsFileExist returns a bool depending if a file exist or not
func IsSubstring ¶ added in v0.2.0
IsSubstring check if a string is a substring of another string
func RemoveDetachedFlag ¶
RemoveDetachedFlag returns a command without the detached flag
func RemoveDuplicate ¶ added in v0.2.0
RemoveDuplicate takes a slice of string as input and remove the duplicates
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.