mirror of
https://github.com/InazumaV/Ratte.git
synced 2026-02-04 12:40:12 +00:00
Initial commit
This commit is contained in:
7
conf/common.go
Normal file
7
conf/common.go
Normal file
@@ -0,0 +1,7 @@
|
||||
package conf
|
||||
|
||||
import "strings"
|
||||
|
||||
func IsHttpUrl(url string) bool {
|
||||
return strings.HasPrefix(url, "http://") || strings.HasPrefix(url, "https://")
|
||||
}
|
||||
Reference in New Issue
Block a user