<commit_before>[![Build Status](https://travis-ci.org/cheshir/go-mq.svg?branch=master)](https://travis-ci.org/cheshir/go-mq)
[![codecov](https://codecov.io/gh/cheshir/go-mq/branch/master/graph/badge.svg)](https://codecov.io/gh/cheshir/go-mq)
[![Go Report Card](https://goreportcard.com/badge/cheshir/go-mq)](https://goreportcard.com/report/github.com/cheshir/go-mq)
[![Job Status](https://inspecode.rocro.com/badges/github.com/cheshir/go-mq/status?token=<KEY>)](https://inspecode.rocro.com/jobs/github.com/cheshir/go-mq/latest?completed=true)
[![Sourcegraph](https://sourcegraph.com/github.com/cheshir/go-mq/-/badge.svg)](https://sourcegraph.com/github.com/houseofcat/turbocookedrabbit?badge) 
[![HitCount](http://hits.dwyl.io/cheshir/go-mq.svg)](http://hits.dwyl.io/cheshir/go-mq)
[![GoDoc](https://godoc.org/github.com/cheshir/go-mq?status.svg)](https://godoc.org/github.com/cheshir/go-mq)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/cheshir/go-mq/blob/master/LICENSE)


# About

This package provides an ability to encapsulate creation and configuration of [AMQP](https://www.amqp.org) entities 
like queues, exchanges, producers and consumers in a declarative way with a single config.

Exchanges, queues and producers are going to be initialized in the background.

go-mq supports both sync and async producers.

go-mq has auto reconnects on closed connection or network error.
You can configure delay between each connect try using `reconnect_delay` option.

## Install

`go get -u github.com/cheshir/go-mq`

## API

Visit [godoc](https://godoc.org/github.com/cheshir/go-mq) to get information about library API.

For those of us who preferred learn something new on practice there is working examples in `example` directory.

## Configuration
<commit_msg>Removed inspect code badge<commit_after>[![Build Status](https://travis-ci.org/cheshir/go-mq.svg?branch=master)](https://travis-ci.org/cheshir/go-mq)
[![codecov](https://codecov.io/gh/cheshir/go-mq/branch/master/graph/badge.svg)](https://codecov.io/gh/cheshir/go-mq)
[![Go Report Card](https://goreportcard.com/badge/cheshir/go-mq)](https://goreportcard.com/report/github.com/cheshir/go-mq)
[![Sourcegraph](https://sourcegraph.com/github.com/cheshir/go-mq/-/badge.svg)](https://sourcegraph.com/github.com/houseofcat/turbocookedrabbit?badge) 
[![HitCount](http://hits.dwyl.io/cheshir/go-mq.svg)](http://hits.dwyl.io/cheshir/go-mq)
[![GoDoc](https://godoc.org/github.com/cheshir/go-mq?status.svg)](https://godoc.org/github.com/cheshir/go-mq)
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/cheshir/go-mq/blob/master/LICENSE)


# About

This package provides an ability to encapsulate creation and configuration of [AMQP](https://www.amqp.org) entities 
like queues, exchanges, producers and consumers in a declarative way with a single config.

Exchanges, queues and producers are going to be initialized in the background.

go-mq supports both sync and async producers.

go-mq has auto reconnects on closed connection or network error.
You can configure delay between each connect try using `reconnect_delay` option.

## Install

`go get -u github.com/cheshir/go-mq`

## API

Visit [godoc](https://godoc.org/github.com/cheshir/go-mq) to get information about library API.

For those of us who preferred learn something new on practice there is working examples in `example` directory.

## Configuration

{'fraction_non_alphanumeric': 0.16001157407407407, 'fraction_numerical': 0.0023148148148148147, 'mean_word_length': 4.9809688581314875, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 30, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3152947', 'n_tokens_mistral': 1234, 'n_tokens_neox': 1163, 'n_words': 227}