SVNからのミラー

This commit is contained in:
2026-01-21 03:36:58 +09:00
commit 965aae7f57
26 changed files with 1101 additions and 0 deletions

16
checkers.go Normal file
View File

@@ -0,0 +1,16 @@
package main
import (
"strings"
"unicode/utf8"
)
// http://かhttps://で始まるかどうか
func checkprefix (url string) bool {
return strings.HasPrefix(url, "http://") || strings.HasPrefix(url, "https://")
}
// URLは500文字以内かどうか
func checkcharlim (url string) bool {
return utf8.RuneCountInString(url) <= 500
}