bind-response-policy-zone-c.../cmd/bind/supporting-functions.go

17 lines
281 B
Go

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]
}