mirror of
https://github.com/oarkflow/mq.git
synced 2025-10-05 16:06:55 +08:00
15 lines
215 B
Go
15 lines
215 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/oarkflow/mq"
|
|
|
|
"github.com/oarkflow/mq/examples/tasks"
|
|
)
|
|
|
|
func main() {
|
|
consumer1 := mq.NewConsumer("F", "F", tasks.Node6)
|
|
consumer1.Consume(context.Background())
|
|
}
|