decodeHashLike decodes UUID strings that are using the following format: "6ba7b8109dad11d180b400c04fd430c8".
(t []byte)
| 115 | // |
| 116 | // "6ba7b8109dad11d180b400c04fd430c8". |
| 117 | func (u *UUID) decodeHashLike(t []byte) error { |
| 118 | src := t[:] |
| 119 | dst := u[:] |
| 120 | |
| 121 | _, err := hex.Decode(dst, src) |
| 122 | return err |
| 123 | } |
| 124 | |
| 125 | // decodeHyphenated decodes UUID strings that are using the following format: |
| 126 | // |
no test coverage detected