summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-09-16 17:40:27 -0300
committerEuAndreh <eu@euandre.org>2024-09-16 17:40:27 -0300
commitc6eaee74881de52884d852a9f4ac269b88e34b49 (patch)
tree47ff5833071b8d062d8720b432a2a795cef3b237
parentInitial version of v4 UUID (diff)
downloaduuid-c6eaee74881de52884d852a9f4ac269b88e34b49.tar.gz
uuid-c6eaee74881de52884d852a9f4ac269b88e34b49.tar.xz
src/guuid.go: Export UUIDByteCount
-rw-r--r--src/guuid.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/guuid.go b/src/guuid.go
index 9e3e2ba..7d69fca 100644
--- a/src/guuid.go
+++ b/src/guuid.go
@@ -11,9 +11,9 @@ import (
const (
- uuidByteCount = 16
+ UUIDByteCount = 16
uuidDashCount = 4
- uuidEncodedLength = (uuidByteCount * 2) + uuidDashCount
+ uuidEncodedLength = (UUIDByteCount * 2) + uuidDashCount
)
@@ -30,7 +30,7 @@ var (
-type UUID [uuidByteCount]byte
+type UUID [UUIDByteCount]byte
@@ -99,5 +99,5 @@ func FromString(str string) (UUID, error) {
return emptyUUID, err
}
- return [uuidByteCount]byte(data), nil
+ return [UUIDByteCount]byte(data), nil
}