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 HomeDir() string
- func IsStringInSlice(a string, list []string) bool
- func OutputJSON(input interface{})
- func PrintJSON(str string)
- func RemoveIntDuplicates(elements []int) []int
- func RemoveStringDuplicates(str []string) []string
- func SetIntID(c *cli.Context, errMessage string) string
- func SetStringId(c *cli.Context, errMessage string) string
- func StringToIntArr(str string) (intArr []int)
- func StringToStringsArr(str string) (strArr []string)
- func StringsSlicesDifference(slice1 []string, slice2 []string) []string
- func VerifyArgumentByName(c *cli.Context, argName string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFlags ¶
func CreateNewApp ¶
func DeleteSlicefromSlice ¶
DeleteSlicefromSlice deletes one slice from another and removes duplicate objects
func IsStringInSlice ¶
IsStringInSlice returns TRUE is slice contains string and false if not
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
func VerifyArgumentByName ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.