package mail type Option struct { Host string Port int User string Password string InsecureSkipVerify bool } type OptionFunc func(*Option) type Mailer struct { opt *Option } func NewMailer(funcs ...OptionFunc) *Mailer { return &Mailer{} }