aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/sergi/go-diff/diffmatchpatch/operation_string.go
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2024-04-26 15:43:42 +0200
committerTaras Madan <tarasmadan@google.com>2024-04-29 16:59:12 +0000
commitc6d0eaac7895871ce9946defe6bf4074f7c0e59c (patch)
tree11222fe8e96dd0b12f08faf85c9885133afffc62 /vendor/github.com/sergi/go-diff/diffmatchpatch/operation_string.go
parente812177d8b1ca6d501d010be1c4e7efff3cc011c (diff)
all: add go-diff dependency and update vendor
Diffstat (limited to 'vendor/github.com/sergi/go-diff/diffmatchpatch/operation_string.go')
-rw-r--r--vendor/github.com/sergi/go-diff/diffmatchpatch/operation_string.go17
1 files changed, 17 insertions, 0 deletions
diff --git a/vendor/github.com/sergi/go-diff/diffmatchpatch/operation_string.go b/vendor/github.com/sergi/go-diff/diffmatchpatch/operation_string.go
new file mode 100644
index 000000000..533ec0da7
--- /dev/null
+++ b/vendor/github.com/sergi/go-diff/diffmatchpatch/operation_string.go
@@ -0,0 +1,17 @@
+// Code generated by "stringer -type=Operation -trimprefix=Diff"; DO NOT EDIT.
+
+package diffmatchpatch
+
+import "fmt"
+
+const _Operation_name = "DeleteEqualInsert"
+
+var _Operation_index = [...]uint8{0, 6, 11, 17}
+
+func (i Operation) String() string {
+ i -= -1
+ if i < 0 || i >= Operation(len(_Operation_index)-1) {
+ return fmt.Sprintf("Operation(%d)", i+-1)
+ }
+ return _Operation_name[_Operation_index[i]:_Operation_index[i+1]]
+}