Compare commits
4 Commits
documentat
...
add-ci
| Author | SHA1 | Date | |
|---|---|---|---|
| d68379ff68 | |||
| 23b6835a2a | |||
| d33d6bd354 | |||
| 73697d4037 |
@@ -1,4 +1,3 @@
|
|||||||
// Package notify provides a simple interface to send notifications to Slack.
|
|
||||||
package notify
|
package notify
|
||||||
|
|
||||||
import (
|
import (
|
||||||
@@ -15,10 +14,8 @@ import (
|
|||||||
"terminalShop/pkg/models"
|
"terminalShop/pkg/models"
|
||||||
)
|
)
|
||||||
|
|
||||||
// slack client
|
|
||||||
var slackClient = &http.Client{Timeout: 5 * time.Second}
|
var slackClient = &http.Client{Timeout: 5 * time.Second}
|
||||||
|
|
||||||
// dollars converts cents to dollars
|
|
||||||
func dollars(cents int) string {
|
func dollars(cents int) string {
|
||||||
return fmt.Sprintf("$%.2f", float64(cents)/100)
|
return fmt.Sprintf("$%.2f", float64(cents)/100)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user