···11+package handlers
22+33+import "strings"
44+55+// TrimRegistryURL removes http:// or https:// prefix from a URL
66+// for use in Docker commands where only the host:port is needed
77+func TrimRegistryURL(url string) string {
88+ url = strings.TrimPrefix(url, "https://")
99+ url = strings.TrimPrefix(url, "http://")
1010+ return url
1111+}