aboutsummaryrefslogtreecommitdiffstats
path: root/bug/bug.go
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-12 21:31:11 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-12 21:32:10 +0200
commit3aecdf2c2da9017513ca04a183089099fb3677d5 (patch)
treeed4d0de0f815ca5f4f0e5deb4bb39a0d68e7fd52 /bug/bug.go
parent3087a472bfe61db806a052ea2afd57d22b8c5d95 (diff)
downloadgit-bug-3aecdf2c2da9017513ca04a183089099fb3677d5.tar.gz
create the Snapshot type for a compiled bug operation log
Diffstat (limited to 'bug/bug.go')
-rw-r--r--bug/bug.go13
1 files changed, 12 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
+//}