Answer the question
In order to leave comments, you need to log in
Why is the govalidator swearing at the generated uuidV4?
Generating with the library
github.com/nu7hatch/gouid
Answer the question
In order to leave comments, you need to log in
If you look at the sources of govalidator, then the validity of uuid v4 is checked with a regular expression
The string "ca86c268-ce1b-46f5-4917-c1fe16caa986" does not match because the penultimate segment must begin with 8, 9, a or b.
Conforming to RFC 4122 Specification
Issue at github.com/nu7hatch/gouuid - Not compliant with RFC4122 spec
I used https://github.com/gofrs/uuid
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question