Documentation ¶
Index ¶
- func CreateFlags() []cli.Flag
- func CreateNewApp(appShortName, usage, version string) *cli.App
- func DeleteSlicefromSlice(slice, delete []int) []int
- func ErrorCheck(e error)
- func GetArgumentInt(c *cli.Context, errMessage string) int
- func GetArgumentStr(c *cli.Context, errMessage string) string
- func HomeDir() string
- func IsRegexMatch(str, pattern string) bool
- func IsStringInSlice(a string, list []string) bool
- func IsTypeExpected(s, expected interface{}) bool
- func OutputJSON(input interface{})
- func PrintJSON(str string)
- func RemoveIntDuplicates(elements []int) []int
- func RemoveStringDuplicates(str []string) []string
- func StringToIntArr(str string) (intArr []int)
- func StringToStringsArr(str string) (strArr []string)
- func StringsSlicesDifference(slice1 []string, slice2 []string) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFlags ¶
func CreateFlags() []cli.Flag
CreateFlags inits default flags used across all CLIs
func CreateNewApp ¶
func CreateNewApp(appShortName, usage, version string) *cli.App
CreateNewApp returns new application
func DeleteSlicefromSlice ¶
DeleteSlicefromSlice deletes one slice from another and removes duplicate objects
func GetArgumentInt ¶
GetArgumentInt retrieves argument value for int
func GetArgumentStr ¶
GetArgumentStr retrieves argument value for string
func IsRegexMatch ¶
IsRegexMatch checks if our string matches regex
func IsStringInSlice ¶
IsStringInSlice returns TRUE is slice contains string and false if not
func IsTypeExpected ¶
func IsTypeExpected(s, expected interface{}) bool
IsTypeExpected checks if our object is of expected type
func OutputJSON ¶
func OutputJSON(input interface{})
OutputJSON displays output of query for alerts in JSON format
func RemoveIntDuplicates ¶
RemoveIntDuplicates removes duplicated elements from int array
func RemoveStringDuplicates ¶
RemoveStringDuplicates removes duplicated elements from strings array
func StringToIntArr ¶
StringToIntArr transform string of comma seperated words to array of ints
func StringToStringsArr ¶
StringToStringsArr transform string of comma seperated words to array of strings
func StringsSlicesDifference ¶
StringsSlicesDifference give you diff between 2 strings slices
Types ¶
This section is empty.