package main import ( "log" "time" ) func timeTrack(start time.Time, name string) { elapsed := time.Since(start) log.Printf("[DEBUG] 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] }