github.com/rclone/rclone@v1.66.1-0.20240517100346-7b89735ae726/vfs/vstate_string.go (about) 1 // Code generated by "stringer -type=vState"; DO NOT EDIT. 2 3 package vfs 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[vOK-0] 12 _ = x[vAddFile-1] 13 _ = x[vAddDir-2] 14 _ = x[vDel-3] 15 } 16 17 const _vState_name = "vOKvAddFilevAddDirvDel" 18 19 var _vState_index = [...]uint8{0, 3, 11, 18, 22} 20 21 func (i vState) String() string { 22 if i >= vState(len(_vState_index)-1) { 23 return "vState(" + strconv.FormatInt(int64(i), 10) + ")" 24 } 25 return _vState_name[_vState_index[i]:_vState_index[i+1]] 26 }