19 lines
275 B
Go
19 lines
275 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
func main() {
|
|
app, err := createApp()
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
if err := app.MQConsumer.StartConsumerHandlers(context.Background()); err != nil {
|
|
panic(err)
|
|
}
|
|
if err := app.MQConsumer.Close(); err != nil {
|
|
panic(err)
|
|
}
|
|
}
|