Skip to content

Commit

Permalink
Merge pull request #80 from josharian/opstringer
Browse files Browse the repository at this point in the history
Make Operation a stringer
  • Loading branch information
sergi committed Jan 25, 2018
2 parents f3948f6 + 3105050 commit 217d392
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
2 changes: 2 additions & 0 deletions diffmatchpatch/diff.go
Expand Up @@ -25,6 +25,8 @@ import (
// Operation defines the operation of a diff item.
type Operation int8

//go:generate stringer -type=Operation -trimprefix=Diff

const (
// DiffDelete item represents a delete diff.
DiffDelete Operation = -1
Expand Down
17 changes: 17 additions & 0 deletions diffmatchpatch/operation_string.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 217d392

Please sign in to comment.