package handlers import "strings" // TrimRegistryURL removes http:// or https:// prefix from a URL // for use in Docker commands where only the host:port is needed func TrimRegistryURL(url string) string { url = strings.TrimPrefix(url, "https://") url = strings.TrimPrefix(url, "http://") return url }