new method of cleaning lists, hopefully much faster
This commit is contained in:
@@ -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]
|
||||
}
|
||||
|
Reference in New Issue
Block a user