package mail import "gitlab.com/wpetit/goweb/service" func ServiceProvider(opts ...OptionFunc) service.Provider { mailer := NewMailer(opts...) return func(ctn *service.Container) (interface{}, error) { return mailer, nil } }