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
attachment = slack.Attachment{} attachment.Text = &[]string{"Payment"}[0] attachment.AddField(slack.Field{Title: "Type", Value: dataType}). AddField(slack.Field{Title: "ID", Value: event.ID}). AddField(slack.Field{Title: "PaymentIntent", Value: paymentIntent}). AddField(slack.Field{Title: "Etc", Value: etc}). AddField(slack.Field{Title: "Fee", Value: strconv.Itoa(int(amountTotal))}) notification.SendSlack(notification.Slack{Attachment: attachment, ID: config.ToPaymentLogSlackNotify, Status: true})
以下のコードのように保守性を上げる。
notification.SendSlack(notification.Slack{ Title: "payment", Data: map[string]string{"Type":dataType, "ID": event.ID,"PaymentIntent":paymentIntent, "Etc": etc,"Fee":fee} ID: config.ToPaymentLogSlackNotify, Status: notification.Good })
The text was updated successfully, but these errors were encountered:
slack-goに移行
Sorry, something went wrong.
#149 に移行のためCloseとします
yoneyan
No branches or pull requests
以下のコードのように保守性を上げる。
The text was updated successfully, but these errors were encountered: