From ba637e6471b458fba625111501fd0cb961c8b1f6 Mon Sep 17 00:00:00 2001 From: Parham Alvani Date: Fri, 6 Sep 2024 10:13:33 +0000 Subject: [PATCH] chore: update readme --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index ad3a6fc..39d8f61 100644 --- a/README.md +++ b/README.md @@ -10,12 +10,14 @@ ## 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. +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. +// create a subscribe groip on "numbers" topic which is named "s1" mmq.Register("s1", "numbers", 10) +// create a subscribe groip on "numbers" topic which is named "s2" mmq.Register("s2", "numbers", 10) ```