Skip to content
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

Allow the user to customize the structure of the Message #2

Open
Romaixn opened this issue Jul 19, 2023 · 2 comments
Open

Allow the user to customize the structure of the Message #2

Romaixn opened this issue Jul 19, 2023 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@Romaixn
Copy link
Owner

Romaixn commented Jul 19, 2023

Currently, the process function takes a message parameter of type any. I would like the user to be able to create their own custom structure and use it directly in the process function.

For example, in the example instead of passing message any, passing message Message :

type Message struct {
	ID     int `json:"id"`
	Number int `json:"number"`
}

func processMessage(message Message, err chan error) {
}
@Romaixn Romaixn added the enhancement New feature or request label Jul 19, 2023
@Romaixn Romaixn added the help wanted Extra attention is needed label Jul 27, 2023
@sudhir512kj
Copy link

@Romaixn label this issue with hacktoberfest-accepted, I would like to work on this

@Romaixn Romaixn assigned Romaixn and sudhir512kj and unassigned Romaixn Oct 16, 2023
@Romaixn
Copy link
Owner Author

Romaixn commented Oct 16, 2023

I assigned you the ticket, feel free to submit a PR 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants