12 lines
233 B
Go
12 lines
233 B
Go
|
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
|
||
|
}
|
||
|
}
|