refactor(core): разбить client.go (1678 строк) на 15 мелких модулей по зонам ответственности

This commit is contained in:
Repinoid
2026-09-22 20:06:49 +03:00
parent c2deff1a58
commit 3d722fb7ee
16 changed files with 1740 additions and 1600 deletions
+29
View File
@@ -0,0 +1,29 @@
package core
import "strings"
// ===== UUID-утилиты =====
func isUUIDLike(value string) bool {
trimmed := strings.TrimSpace(value)
if len(trimmed) != 36 {
return false
}
for i, r := range trimmed {
switch i {
case 8, 13, 18, 23:
if r != '-' {
return false
}
default:
if !isHexDigit(r) {
return false
}
}
}
return true
}
func isHexDigit(r rune) bool {
return (r >= '0' && r <= '9') || (r >= 'a' && r <= 'f') || (r >= 'A' && r <= 'F')
}