Skip to content

Commit 217d392

Browse files
authored
Merge pull request #80 from josharian/opstringer
Make Operation a stringer
2 parents f3948f6 + 3105050 commit 217d392

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed

diffmatchpatch/diff.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ import (
2525
// Operation defines the operation of a diff item.
2626
type Operation int8
2727

28+
//go:generate stringer -type=Operation -trimprefix=Diff
29+
2830
const (
2931
// DiffDelete item represents a delete diff.
3032
DiffDelete Operation = -1

diffmatchpatch/operation_string.go

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)