created functions

This commit is contained in:
0xdcarns
2022-12-23 12:38:04 -05:00
parent d048aafe02
commit 5f5f8be5d5
3 changed files with 55 additions and 3 deletions

View File

@@ -200,3 +200,9 @@ func CheckIfFileExists(filePath string) bool {
}
return true
}
// RemoveStringSlice - removes an element at given index i
// from a given string slice
func RemoveStringSlice(slice []string, i int) []string {
return append(slice[:i], slice[i+1:]...)
}