diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2022-05-24 21:53:28 -0600 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2022-05-24 21:53:28 -0600 |
commit | 23ab1f8be6a1f4b5ce01e05f8ed3f6b5dae30d0b (patch) | |
tree | 854801aa60dd204cd390c40f7cafb326e981014f /pkg/btrfs/uuid.go | |
parent | b0dd4d1f0c8262e3680570d529d00c9ebead1a91 (diff) |
stuff
Diffstat (limited to 'pkg/btrfs/uuid.go')
-rw-r--r-- | pkg/btrfs/uuid.go | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/pkg/btrfs/uuid.go b/pkg/btrfs/uuid.go deleted file mode 100644 index b9e3e0c..0000000 --- a/pkg/btrfs/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[:]) -} |