github.com/avfs/avfs@v0.33.1-0.20240303173310-c6ba67c33eb7/ostype_string.go (about) 1 // Code generated by "stringer -type OSType -linecomment -output ostype_string.go"; DO NOT EDIT. 2 3 package avfs 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[OsUnknown-0] 12 _ = x[OsLinux-1] 13 _ = x[OsWindows-2] 14 _ = x[OsDarwin-3] 15 } 16 17 const _OSType_name = "UnknownLinuxWindowsDarwin" 18 19 var _OSType_index = [...]uint8{0, 7, 12, 19, 25} 20 21 func (i OSType) String() string { 22 if i >= OSType(len(_OSType_index)-1) { 23 return "OSType(" + strconv.FormatInt(int64(i), 10) + ")" 24 } 25 return _OSType_name[_OSType_index[i]:_OSType_index[i+1]] 26 }