11 lines
210 B
Go

package http
import (
"m3u8-downloader/pkg/constants"
"strings"
)
func ValidateURL(url string) bool {
return strings.HasPrefix(url, constants.HTTPPrefix) || strings.HasPrefix(url, constants.HTTPSPrefix)
}