Compare commits

...

3 Commits

Author SHA1 Message Date
0ca5bd9bb8 docs(comments): add some comments 2026-05-24 18:54:22 +02:00
c429c1966e docs(comments): add some comments (#5)
this is the subject of the commit
2026-05-24 18:44:25 +02:00
50e1ba32f3 docs(comments): add some comments (#4) 2026-05-24 12:26:34 +02:00

View File

@@ -1,3 +1,4 @@
// Package notify provides a simple interface to send notifications to Slack.
package notify package notify
import ( import (
@@ -14,8 +15,10 @@ 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)
} }