-
Notifications
You must be signed in to change notification settings - Fork 307
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bind consumed message to different types. #670
Bind consumed message to different types. #670
Conversation
…fferent-types' into feature/consume-messages-with-different-types
@illenko should we not support all built in types like int64, int32, uint, etc. I think int64 is a much used type in applications. |
@vipul-rawat As for the difference between I can add this support, but I do not think it will have a real usage. |
@illenko sure we can have the current ones then, if requirement comes we can add other data types further. |
Description:
Bind consumed message to different types:
struct
,map[string]any
,int
,bool
,float64
andstring
.Check parameter passed to
Bind
is pointer.Closes: Bind Pub/Sub messages to basic data types. #662
I have formatted my code using
goimport
andgolangci-lint
.All new code is covered by unit tests.
This PR does not decrease the overall code coverage.
I have reviewed the code comments and documentation for clarity.