package resend import "time" // NewSenderWithEndpoint lets tests point the sender at a local fake and fix // the clock. Production code can only use the documented endpoint. func NewSenderWithEndpoint(apiKey, from string, timeout time.Duration, endpoint string, now func() time.Time) (*Sender, error) { return newSender(apiKey, from, timeout, endpoint, now) }