Skip to content
Snippets Groups Projects
Commit d1263770 authored by Francé Wilke's avatar Francé Wilke
Browse files

Add util function RemoveUrlScheme

parent 56f6e43b
No related branches found
No related tags found
No related merge requests found
...@@ -212,3 +212,9 @@ func sentenceCase(str string) string { ...@@ -212,3 +212,9 @@ func sentenceCase(str string) string {
return "" return ""
} }
// RemoveUrlScheme Removes http:// or https:// from a URL
func RemoveUrlScheme(str string) string {
newStr := strings.Replace(str, "http://", "", 1)
newStr = strings.Replace(str, "https://", "", 1)
return newStr
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment