vstate_string.go 632 B

123456789101112131415161718192021222324252627
  1. // Code generated by "stringer -type=vState"; DO NOT EDIT.
  2. package vfs
  3. import "strconv"
  4. func _() {
  5. // An "invalid array index" compiler error signifies that the constant values have changed.
  6. // Re-run the stringer command to generate them again.
  7. var x [1]struct{}
  8. _ = x[vOK-0]
  9. _ = x[vAddFile-1]
  10. _ = x[vAddDir-2]
  11. _ = x[vDel-3]
  12. }
  13. const _vState_name = "vOKvAddFilevAddDirvDel"
  14. var _vState_index = [...]uint8{0, 3, 11, 18, 22}
  15. func (i vState) String() string {
  16. if i >= vState(len(_vState_index)-1) {
  17. return "vState(" + strconv.FormatInt(int64(i), 10) + ")"
  18. }
  19. return _vState_name[_vState_index[i]:_vState_index[i+1]]
  20. }