Question about UUID #204
Replies: 3 comments 3 replies
-
|
I recently did an update to potentially fix that from a pr that someone submitted. Can you confirm you are using the more recent version? If you are, can you please try to give me a full example that i can run to test where its not binding to your type? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
@brianvoe I am experiencing a similar issue in v7@v7.0.2. For example: This prints out the following: |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
Gofakeit uuid returns a string. Is your uuid.UUID w string? If not that's why |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Greetings, thank you for writing this library. It's definitely saving me a lot of time. With that being said, I do have a question. It's quite possible that I'm using this incorrectly, but I was trying to write my own custom function that mirrors UUID but instead of returning a string, instead returns a custom data type (in this case, a Google uuid.UUID). Given the following:
`
/* Yes I realize that I'm not using r, but I have a global that I'm using for ourfaker which is initialized
to the correct seed */
`
When all is said and done, s.My_Guid is all zeroes, though if I put a breakpoint in getUuidBinary I'm returning the correct value. If there's
a better way to do this, I'm all ears (and yes, I'm aware of New() in Google's package, but I want to use the gofakeit version because I can get repeatability by using the same seed.
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions