whatismyip/internal/validator/uuid/uuid.go

11 lines
128 B
Go
Raw Normal View History

2024-04-12 17:26:48 +00:00
package uuid
import (
"github.com/google/uuid"
)
func IsValid(u string) bool {
_, err := uuid.Parse(u)
return err == nil
}