diff options
author | Michael Muré <batolettre@gmail.com> | 2018-07-13 16:13:40 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2018-07-13 16:13:40 +0200 |
commit | bc12fee58e8bd86672793ae37d9f924158afb482 (patch) | |
tree | b6506af647a5e6d3d8c053f2b284a3adc335d35b /bug/operation.go | |
parent | e02294c8f372156945bbc43d70d4d36a07a3fbcf (diff) | |
download | git-bug-bc12fee58e8bd86672793ae37d9f924158afb482.tar.gz |
create the Bug structure
Diffstat (limited to 'bug/operation.go')
-rw-r--r-- | bug/operation.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bug/operation.go b/bug/operation.go new file mode 100644 index 00000000..f36e9e39 --- /dev/null +++ b/bug/operation.go @@ -0,0 +1,15 @@ +package bug + +type OperationType int + +const ( + UNKNOW OperationType = iota + CREATE + SET_TITLE + ADD_COMMENT +) + +type Operation interface { + OpType() OperationType + Apply(snapshot Snapshot) Snapshot +} |