aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-08-23 19:11:38 +0200
committerMichael Muré <batolettre@gmail.com>2018-08-23 19:15:50 +0200
commit16f55e3f4d560330a638986130d27fd067300169 (patch)
tree41cfedb5c11bf9accd131d34b8a9ac25cfafaa05 /misc
parent6d7dc465d881d0d04b01dfb6e09870346216d2d0 (diff)
downloadgit-bug-16f55e3f4d560330a638986130d27fd067300169.tar.gz
bug: introduce WithSnapshot to maintain incrementally and effitiently a snapshot
Diffstat (limited to 'misc')
-rw-r--r--misc/random_bugs/create_random_bugs.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/random_bugs/create_random_bugs.go b/misc/random_bugs/create_random_bugs.go
index 54dad58a..46ca7964 100644
--- a/misc/random_bugs/create_random_bugs.go
+++ b/misc/random_bugs/create_random_bugs.go
@@ -11,7 +11,7 @@ import (
"github.com/icrowley/fake"
)
-type opsGenerator func(*bug.Bug, bug.Person)
+type opsGenerator func(bug.Interface, bug.Person)
type Options struct {
BugNumber int
@@ -94,17 +94,17 @@ func paragraphs() string {
return strings.Replace(p, "\t", "\n\n", -1)
}
-func comment(b *bug.Bug, p bug.Person) {
+func comment(b bug.Interface, p bug.Person) {
operations.Comment(b, p, paragraphs())
}
-func title(b *bug.Bug, p bug.Person) {
+func title(b bug.Interface, p bug.Person) {
operations.SetTitle(b, p, fake.Sentence())
}
var addedLabels []string
-func labels(b *bug.Bug, p bug.Person) {
+func labels(b bug.Interface, p bug.Person) {
var removed []string
nbRemoved := rand.Intn(3)
for nbRemoved > 0 && len(addedLabels) > 0 {