1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
package operations import ( "github.com/MichaelMure/git-bug/bug" ) type OperationType int const ( UNKNOW OperationType = iota CREATE SET_TITLE ADD_COMMENT ) type Operation interface { OpType() OperationType Apply(snapshot bug.Snapshot) bug.Snapshot }