summaryrefslogtreecommitdiff
path: root/pkg/btrfs/btrfstyp/uuid.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-06-01 01:56:16 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-06-01 01:56:16 -0600
commit70fc3adf402eb956e6061fae75e46c46c1ad606d (patch)
tree5611c676dcb91405d7a327e42f664f2496107944 /pkg/btrfs/btrfstyp/uuid.go
parent3825cf60fd652f22acc438d50028701d27a7402d (diff)
update main, kinda
Diffstat (limited to 'pkg/btrfs/btrfstyp/uuid.go')
-rw-r--r--pkg/btrfs/btrfstyp/uuid.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/pkg/btrfs/btrfstyp/uuid.go b/pkg/btrfs/btrfstyp/uuid.go
deleted file mode 100644
index 8b0c92e..0000000
--- a/pkg/btrfs/btrfstyp/uuid.go
+++ /dev/null
@@ -1,24 +0,0 @@
-package btrfstyp
-
-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[:])
-}