pborman
pborman
Thanks for the fix. This is the right thing to do but is potentially a breaking change. It used to handle a UUID in quotes but will no longer. It...
Wait, that only works for quotes. You do have to check the first and last independently because last I checked '{' != '}' :-)
I think a double quote is probably the most common I was also thinking of an array for fast checks: var quotes = [256]byte { '{': '}', '"': '"', }...
I left this with the comment that this will break the parsing of UUIDs in quotes, which I think is a reasonable possibility. Any solution will slow down the parsing...
@beiriannydd I think you are right (though unicode won't matter because those will be more than 1 byte long). Probably the better answer for those that want to use this...
So this means the version cannot be determined since they moved the version field. Sounds like Microsoft. This isn't the first standard that they have messed up for everyone else....
These really are two different types because they have different binary representations and they are not comparable to each other without converting from one to another. Also, encoders, such as...
I wrote up a working example of what I suggested above, it is included below. Would this concept work for you? In your structures who are serialized to the DSP0134...
Hey, I made and example package: github.com/pborman/dsp0134 Will this package work for you? If so I am thinking we can make it a sub package of the uuid package.
Did this work? I am wondering if it is worth making into a supported package or not. I am thinking a sub package of this UUID package.