From bc12fee58e8bd86672793ae37d9f924158afb482 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Fri, 13 Jul 2018 16:13:40 +0200 Subject: create the Bug structure --- bug/operation.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 bug/operation.go (limited to 'bug/operation.go') 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 +} -- cgit