package utils import ( "strings" ) func StripPort(addr string) string { parts := strings.Split(addr, ":") return parts[0] }