summaryrefslogtreecommitdiff
path: root/pkg/btrfs/types_uuid.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-06-01 01:27:19 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-06-01 01:27:19 -0600
commit3825cf60fd652f22acc438d50028701d27a7402d (patch)
tree24b86afb8513891274dfaa8b982c4c94c1a65a5d /pkg/btrfs/types_uuid.go
parent2348cdbe2a3417990a2088f9e4e91adf0c45617d (diff)
wow
Diffstat (limited to 'pkg/btrfs/types_uuid.go')
-rw-r--r--pkg/btrfs/types_uuid.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/pkg/btrfs/types_uuid.go b/pkg/btrfs/types_uuid.go
deleted file mode 100644
index b9e3e0c..0000000
--- a/pkg/btrfs/types_uuid.go
+++ /dev/null
@@ -1,24 +0,0 @@
-package btrfs
-
-import (
- "bytes"
- "encoding/hex"
- "strings"
-)
-
-type UUID [16]byte
-
-func (uuid UUID) String() string {
- str := hex.EncodeToString(uuid[:])
- return strings.Join([]string{
- str[:8],
- str[8:12],
- str[12:16],
- str[16:20],
- str[20:32],
- }, "-")
-}
-
-func (a UUID) Equal(b UUID) bool {
- return bytes.Equal(a[:], b[:])
-}