summaryrefslogtreecommitdiff
path: root/src/guuid.go
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-01-15 04:43:38 -0300
committerEuAndreh <eu@euandre.org>2025-01-15 04:43:38 -0300
commit9ae62b4cfca6293d4a83cc0242c54e5eac1cf47b (patch)
treea7d6a7380d7bbc60f2cf9a9142371b4cf404dcad /src/guuid.go
parenttests/guuid.go: Add test for panic inside New() (diff)
downloaduuid-9ae62b4cfca6293d4a83cc0242c54e5eac1cf47b.tar.gz
uuid-9ae62b4cfca6293d4a83cc0242c54e5eac1cf47b.tar.xz
Makefile: Simplify variable names
Diffstat (limited to 'src/guuid.go')
-rw-r--r--src/guuid.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/guuid.go b/src/guuid.go
index e4f5f14..22d783a 100644
--- a/src/guuid.go
+++ b/src/guuid.go
@@ -20,7 +20,9 @@ var (
dashIndexes = []int{ 8, 13, 18, 23 }
randomReader = rand.Reader
- ErrBadLength = errors.New("guuid: str isn't of the correct length")
+ ErrBadLength = errors.New(
+ "guuid: str isn't of the correct length",
+ )
ErrBadDashCount = errors.New("guuid: Bad count of dashes in string")
ErrBadDashPosition = errors.New("guuid: Bad char in string")
)