Compare commits
3 Commits
comment-cl
...
documntati
| Author | SHA1 | Date | |
|---|---|---|---|
| ce198ba775 | |||
| 50e1ba32f3 | |||
| 85b0c53c0a |
@@ -1,3 +1,4 @@
|
||||
// Package notify provides a simple interface to send notifications to Slack.
|
||||
package notify
|
||||
|
||||
import (
|
||||
@@ -16,6 +17,7 @@ import (
|
||||
|
||||
var slackClient = &http.Client{Timeout: 5 * time.Second}
|
||||
|
||||
// dollars converts cents to dollars
|
||||
func dollars(cents int) string {
|
||||
return fmt.Sprintf("$%.2f", float64(cents)/100)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user