operation.go

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