You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
687B

  1. // Code generated by "stringer -type=Operation -linecomment"; DO NOT EDIT.
  2. package cache
  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[OperationGet-1]
  9. _ = x[OperationSet-2]
  10. _ = x[OperationDelete-3]
  11. }
  12. const _Operation_name = "getsetdelete"
  13. var _Operation_index = [...]uint8{0, 3, 6, 12}
  14. func (i Operation) String() string {
  15. i -= 1
  16. if i < 0 || i >= Operation(len(_Operation_index)-1) {
  17. return "Operation(" + strconv.FormatInt(int64(i+1), 10) + ")"
  18. }
  19. return _Operation_name[_Operation_index[i]:_Operation_index[i+1]]
  20. }