Files

14 lines
305 B
Go

package sms
import "log"
// LogSender writes messages to the log instead of sending.
// Used automatically when no SMS credentials are configured.
type LogSender struct{}
// Send logs the would-be SMS.
func (LogSender) Send(to, body string) error {
log.Printf("SMS to %s: %s", to, body)
return nil
}