summaryrefslogtreecommitdiff
path: root/lib/btrfs/btrfsitem/item_dir.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-02-11 22:15:41 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-02-12 16:17:27 -0700
commit28549f676e040c96bfae575535dea7e0ecdf0f41 (patch)
treefdfadc8fc24ee4ae4c5bef7dbf03431c19abcad9 /lib/btrfs/btrfsitem/item_dir.go
parentcfcc753dc8906817e15b1b7c36b4dc12462d12e4 (diff)
Change how constants are declared to play nice with godoc
Switch to NAME Type = val instead of NAME = Type(val)
Diffstat (limited to 'lib/btrfs/btrfsitem/item_dir.go')
-rw-r--r--lib/btrfs/btrfsitem/item_dir.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/btrfs/btrfsitem/item_dir.go b/lib/btrfs/btrfsitem/item_dir.go
index 0049072..0f263d5 100644
--- a/lib/btrfs/btrfsitem/item_dir.go
+++ b/lib/btrfs/btrfsitem/item_dir.go
@@ -84,17 +84,17 @@ func (o DirEntry) MarshalBinary() ([]byte, error) {
type FileType uint8
const (
- FT_UNKNOWN = FileType(0)
- FT_REG_FILE = FileType(1)
- FT_DIR = FileType(2)
- FT_CHRDEV = FileType(3)
- FT_BLKDEV = FileType(4)
- FT_FIFO = FileType(5)
- FT_SOCK = FileType(6)
- FT_SYMLINK = FileType(7)
- FT_XATTR = FileType(8)
+ FT_UNKNOWN FileType = 0
+ FT_REG_FILE FileType = 1
+ FT_DIR FileType = 2
+ FT_CHRDEV FileType = 3
+ FT_BLKDEV FileType = 4
+ FT_FIFO FileType = 5
+ FT_SOCK FileType = 6
+ FT_SYMLINK FileType = 7
+ FT_XATTR FileType = 8
- FT_MAX = FileType(9)
+ FT_MAX FileType = 9
)
func (ft FileType) String() string {