Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Valid UUID not parsing correctly #26

Closed
owentran opened this issue Jul 29, 2015 · 4 comments
Closed

Valid UUID not parsing correctly #26

owentran opened this issue Jul 29, 2015 · 4 comments

Comments

@owentran
Copy link

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)
    }
}
@owentran
Copy link
Author

owentran commented Sep 9, 2015

Had to switch libraries, moved to: github.com/satori/go.uuid until this issue can be resolved.

@owentran owentran closed this as completed Sep 9, 2015
@owentran owentran reopened this Sep 9, 2015
@jaytaylor
Copy link

@owentran The satori package is much much better..

For more info see the deprecation msg in my fork: https://github.com/jaytaylor/uuid

@owentran
Copy link
Author

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).

@tpiron
Copy link

tpiron commented Oct 12, 2016

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants