mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-12 04:01:48 +08:00
created functions
This commit is contained in:
@@ -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:]...)
|
||||
}
|
||||
|
Reference in New Issue
Block a user