On Wed, Oct 18, 2017 at 8:05 AM,  <paul.h.bres...@gmail.com> wrote:
>
> We are passing 16 byte binary UUIDs via grpc and need to be able to cast
> these from byte slice back to type uuid.UUID.
> There doesn't seem to be an easy way to do this. It would be nice if the
> UUID package had a method for this.
> This works but is there a better way?
>
>     var b [16]byte
>
>     copy(b[:], bslice)
>     guid := uuid.UUID(b)

Which uuid package are you using?  You should probably report this to
that package's maintainers.  As far as I know there is no uuid package
in the Go standard library.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to