1 2 3 4 5 6 7 8 9 10
package utils import ( "strings" ) func StripPort(addr string) string { parts := strings.Split(addr, ":") return parts[0] }