Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
1995parham committed Sep 6, 2024
1 parent 4042ee6 commit ab28060
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
<h1 align="center">In-memory central messaging queue for dummies</h1>

## Introduction

Sometimes you want to test your code with mocks and here is a mock for messaging queue. It tries to mimic the NATS concepts
and for sure it cannot. It doesn't have any dependencies except Go standard libraries and you can easily use it in your tests.

```go
mmq := cmq.NewMockMessageQueue[int]()

# register two different subscribing groups.
mmq.Register("s1", "numbers", 10)
mmq.Register("s2", "numbers", 10)
```

0 comments on commit ab28060

Please sign in to comment.