operation_string.go 429 B

1234567891011121314151617
  1. // Code generated by "stringer -type=Operation -trimprefix=Diff"; DO NOT EDIT.
  2. package diffmatchpatch
  3. import "fmt"
  4. const _Operation_name = "DeleteEqualInsert"
  5. var _Operation_index = [...]uint8{0, 6, 11, 17}
  6. func (i Operation) String() string {
  7. i -= -1
  8. if i < 0 || i >= Operation(len(_Operation_index)-1) {
  9. return fmt.Sprintf("Operation(%d)", i+-1)
  10. }
  11. return _Operation_name[_Operation_index[i]:_Operation_index[i+1]]
  12. }