MCPcopy Create free account
hub / github.com/0xUnixIO/pulse / isValidUUID

Function isValidUUID

internal/serverapi/users.go:652–652  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

650var uuidRe = regexp.MustCompile(`^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$`)
651
652func isValidUUID(s string) bool { return uuidRe.MatchString(s) }
653
654func randomUUID() string {
655 buf := make([]byte, 16)

Callers 1

handleUserCredentialsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected