We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aaa0f01 commit ae923fbCopy full SHA for ae923fb
_example/simple/main.go
@@ -12,6 +12,7 @@ import (
12
)
13
14
type job struct {
15
+ Name string
16
Message string
17
}
18
@@ -38,7 +39,7 @@ func main() {
38
39
40
41
- rets <- v.Message
42
+ rets <- "Hi, " + v.Name + ", " + v.Message
43
return nil
44
}),
45
@@ -59,6 +60,7 @@ func main() {
59
60
for i := 0; i < taskN; i++ {
61
go func(i int) {
62
q.Queue(&job{
63
+ Name: "foobar",
64
Message: fmt.Sprintf("handle the job: %d", i+1),
65
})
66
}(i)
0 commit comments