Valid UUID not parsing correctly
owentran opened this issue · 4 comments
The following UUID has passed several other validations but fails with the gouuid library?
package main
import (
"fmt"
"github.com/nu7hatch/gouuid"
)
func main() {
s := "1c08d1b4-3cd4-698d-e053-0100007f2bc1"
if _, err := uuid.ParseHex(s); err != nil {
fmt.Printf("Cannot Parse %+v", err)
}
}
Had to switch libraries, moved to: github.com/satori/go.uuid until this issue can be resolved.
@owentran The satori package is much much better..
For more info see the deprecation msg in my fork: https://github.com/jaytaylor/uuid
Yup, we switched on over. Thanks for the note and for your earlier
contributions. -o
On Thu, Sep 24, 2015 at 12:52 PM, Jay Taylor notifications@github.com
wrote:
@owentran https://github.com/owentran The satori package is much much
better..For more info see the deprecation msg in my fork:
https://github.com/jaytaylor/uuid—
Reply to this email directly or view it on GitHub
#26 (comment).
The first character of the third block has to be a number between 1 and 5 https://github.com/nu7hatch/gouuid/blob/master/uuid.go#L40, I had the same issue, I'll change my code to use satori/go.uuid .