package
0.0.0-20210718062109-496be73d0ac7
Repository: https://github.com/piyuo/libsrv.git
Documentation: pkg.go.dev

# Functions

ForceStopSend set to true will stop send email .
NewMail return Mail instance, require template name and locale to find template m, err := mail.NewMail("verify", "en_US") m.AddTo("piyuo", "[email protected]") m.ReplaceText("%1", "1234") m.ReplaceHTML("%1", "1234") m.Send(ctx) .

# Constants

No description provided by the author
KeepMail keep mail in LastMail .
MockError let function error .
MockSuccess let function return nil .

# Variables

LastMail is mail sent when KeepMail .

# Structs

BaseMail implement basic property of mail .
Email is a single email address .
SendgridMail using SendGrid to implement mail .
No description provided by the author

# Interfaces

Mail use template to generate mail content and send .

# Type aliases

Mock define key test flag .