aboutsummaryrefslogtreecommitdiffstats
path: root/bug
diff options
context:
space:
mode:
Diffstat (limited to 'bug')
-rw-r--r--bug/bug.go13
-rw-r--r--bug/label.go3
2 files changed, 15 insertions, 1 deletions
diff --git a/bug/bug.go b/bug/bug.go
index 33da1326..ac99c164 100644
--- a/bug/bug.go
+++ b/bug/bug.go
@@ -1,7 +1,18 @@
package bug
-type Bug struct {
+// Snapshot is a compiled form of the Bug data structure used for storage and merge
+type Snapshot struct {
Title string
Comments []Comment
+ Labels []Label
}
+//func (bug Bug) Check() error {
+// if bug.Operations.Len() == 0 {
+// return "Empty operation log"
+// }
+//
+// if bug.Operations.Elems()
+//
+// return true
+//}
diff --git a/bug/label.go b/bug/label.go
new file mode 100644
index 00000000..c202cd70
--- /dev/null
+++ b/bug/label.go
@@ -0,0 +1,3 @@
+package bug
+
+type Label string