From c6d0eaac7895871ce9946defe6bf4074f7c0e59c Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Fri, 26 Apr 2024 15:43:42 +0200 Subject: all: add go-diff dependency and update vendor --- .../sergi/go-diff/diffmatchpatch/operation_string.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 vendor/github.com/sergi/go-diff/diffmatchpatch/operation_string.go (limited to 'vendor/github.com/sergi/go-diff/diffmatchpatch/operation_string.go') 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]] +} -- cgit mrf-deployment