Skip to content

Instantly share code, notes, and snippets.

@simpleton
simpleton / consumer.go
Last active Nov 4, 2020
Golang auto-reconnect rabbitmq consumer
View consumer.go
package base
import (
"errors"
"fmt"
"github.com/manucorporat/try"
"github.com/simpleton/beego"
"github.com/streadway/amqp"
"math/rand"
"model/helper"