Files
Ratte/conf/common.go
2024-09-12 06:04:32 +09:00

8 lines
148 B
Go

package conf
import "strings"
func IsHttpUrl(url string) bool {
return strings.HasPrefix(url, "http://") || strings.HasPrefix(url, "https://")
}