github.com/mook-as/cf-cli@v7.0.0-beta.28.0.20200120190804-b91c115fae48+incompatible/util/url.go (about) 1 package util 2 3 import "strings" 4 5 func IsHTTPScheme(path string) bool { 6 return strings.HasPrefix(path, "http://") || strings.HasPrefix(path, "https://") 7 } 8 9 func IsUnsupportedURLScheme(path string) bool { 10 return strings.Contains(path, "://") && !IsHTTPScheme(path) 11 }