new method of cleaning lists, hopefully much faster

This commit is contained in:
2022-03-21 17:42:36 -05:00
parent ff9cc1349f
commit 7349960421
3 changed files with 13 additions and 14 deletions

View File

@@ -9,3 +9,8 @@ func timeTrack(start time.Time, name string) {
elapsed := time.Since(start)
log.Printf("[TRACE] Function %s took %s\n", name, elapsed)
}
func removeStringFromSlice(s []string, i int) []string {
s[i] = s[len(s)-1]
return s[:len(s)-1]
}