MCPcopy
hub / github.com/m4ll0k/BBTz / CheckUrl

Function CheckUrl

aron.go:116–134  ·  view source on GitHub ↗
(url string)

Source from the content-addressed store, hash-verified

114}
115
116func CheckUrl(url string) string {
117 // check url
118 if url != "" {
119 if strings.Contains(url,"://"){
120 return url
121 } else {
122 if strings.Contains(url,"."){
123 return "http://" + url
124 } else {
125 Warn("Please enter with valid URL",true)
126 return ""
127 }
128 }
129 } else {
130 Warn("Please enter with your URL!",true)
131 return ""
132 }
133 return ""
134}
135
136func JoinPost(data string, param string) string {
137 // Params Join

Callers 1

mainFunction · 0.85

Calls 1

WarnFunction · 0.85

Tested by

no test coverage detected