github.com/filecoin-project/bacalhau@v0.3.23-0.20230228154132-45c989550ace/pkg/storage/filesystemnodetype_string.go (about) 1 // Code generated by "stringer -type=FileSystemNodeType --trimprefix=FileSystemNode"; DO NOT EDIT. 2 3 package storage 4 5 import "strconv" 6 7 func _() { 8 // An "invalid array index" compiler error signifies that the constant values have changed. 9 // Re-run the stringer command to generate them again. 10 var x [1]struct{} 11 _ = x[fileSystemNodeUnknown-0] 12 _ = x[FileSystemNodeDirectory-1] 13 _ = x[FileSystemNodeFile-2] 14 _ = x[fileSystemNodeDone-3] 15 } 16 17 const _FileSystemNodeType_name = "fileSystemNodeUnknownDirectoryFilefileSystemNodeDone" 18 19 var _FileSystemNodeType_index = [...]uint8{0, 21, 30, 34, 52} 20 21 func (i FileSystemNodeType) String() string { 22 if i < 0 || i >= FileSystemNodeType(len(_FileSystemNodeType_index)-1) { 23 return "FileSystemNodeType(" + strconv.FormatInt(int64(i), 10) + ")" 24 } 25 return _FileSystemNodeType_name[_FileSystemNodeType_index[i]:_FileSystemNodeType_index[i+1]] 26 }