UUID allocates an unique object ID.
()
| 11 | |
| 12 | // UUID allocates an unique object ID. |
| 13 | func UUID() []byte { return uuid.NewV4().Bytes() } |
| 14 | |
| 15 | // UUIDString returns canonical string representation of UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx |
| 16 | func UUIDString(id []byte) string { return uuid.FromBytesOrNil(id).String() } |
no test coverage detected