We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
More of a refactoring request. Currently the slack-notifier is a program, not a reusable package.
Use slack notifier from a running WebService.
I would like to import slacknotifier as a package and provide (overridden) message details as parameters.
slacknotifier
notifier := slacknotifier.New(webhookURL) err := notifier.Notify(payload)
The current main.go could import that package. A Go convention is to create a cmd/slack-notifier folder where the main.go will be.
cmd/slack-notifier
In the past, I did a similar refactoring for https://github.com/kramphub/kiya
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the Feature
More of a refactoring request. Currently the slack-notifier is a program, not a reusable package.
Use Case
Use slack notifier from a running WebService.
Describe Ideal Solution
I would like to import
slacknotifier
as a package and provide (overridden) message details as parameters.The current main.go could import that package. A Go convention is to create a
cmd/slack-notifier
folder where the main.go will be.In the past, I did a similar refactoring for https://github.com/kramphub/kiya
The text was updated successfully, but these errors were encountered: