links validator
All checks were successful
/ Make image (push) Successful in 37s

This commit is contained in:
nquidox 2026-04-06 17:05:00 +03:00
parent af1710c3fe
commit c5013c03ff
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,10 @@
package processor
import "strings"
func linkIsValid(link string) bool {
if strings.HasPrefix(link, "http://") || strings.HasPrefix(link, "https://") {
return true
}
return false
}