Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/sbabiv/rmqconn
Browse files Browse the repository at this point in the history
  • Loading branch information
sbabiv committed Mar 6, 2019
2 parents f604fe7 + f5183c1 commit f977b19
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,20 @@ RabbitMQ Reconnection for Golang

[![Build Status](https://travis-ci.org/sbabiv/rmqconn.svg?branch=master)](https://travis-ci.org/sbabiv/rmqconn)
[![Coverage Status](https://coveralls.io/repos/github/sbabiv/rmqconn/badge.svg?branch=master)](https://coveralls.io/github/sbabiv/rmqconn?branch=master)
[![Go Report Card](https://goreportcard.com/badge/github.com/sbabiv/rmqconn)](https://goreportcard.com/report/github.com/sbabiv/rmqconn)
[![GoDoc](https://godoc.org/github.com/sbabiv/rmqconn?status.svg)](https://godoc.org/github.com/sbabiv/rmqconn)

```Go
conn, err := rmqconn.Open("amqp://", rmqconn.Dial)
defer conn.Close()

if err != nil {
return
}

err = conn.Do(func(ch *amqp.Channel) error {
return ch.Publish("", "queueName", false, false, amqp.Publishing{
Body: []byte("hello wolrd"),
})
})
```

0 comments on commit f977b19

Please sign in to comment.