diff options
Diffstat (limited to '')
-rw-r--r-- | src/guuid.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/guuid.go b/src/guuid.go index 7d69fca..0d20021 100644 --- a/src/guuid.go +++ b/src/guuid.go @@ -53,6 +53,11 @@ func New() UUID { return uuid } +func NewBytes() []byte { + id := New() + return id[:] +} + func (uuid UUID) String() string { dst := [uuidEncodedLength]byte { 0, 0, 0, 0, |