Update urls.go

This commit is contained in:
gilfoyle97
2022-02-13 12:50:54 +01:00
committed by GitHub
parent 8233288656
commit e57d9aa6e4
+1
View File
@@ -80,6 +80,7 @@ func GetScheme(input string) string {
//HasScheme takes as input a string and
//checks if it has a protocol ( like in a
//URI/URL)
//Should be renamed to HasProtocol?
func HasScheme(input string) bool {
res := strings.Index(input, "://")
return res >= 0