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

Parse messages outside of method #8

Open
tonimelisma opened this issue Apr 12, 2021 · 0 comments
Open

Parse messages outside of method #8

tonimelisma opened this issue Apr 12, 2021 · 0 comments

Comments

@tonimelisma
Copy link

The only way to parse syslog messages is by creating an empty message struct and calling its method. I don't think this is idiomatic go. Why not just have a generic parse() function which returns a message or a slice of messages from whatever was parsed?

Would a PR be welcome? Is the library still maintained? There's only one release (0.1.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant