genny/mail/options.go
func (opts *Options) Validate() error {
	if opts.App.IsZero() {
		opts.App = meta.New(".")
	}

	if len(opts.Name.String()) == 0 {
		return errors.New("you must supply a name for your mailer")
	}
	return nil
}
func (opts *Options) Validate() error {
	if opts.App.IsZero() {
		opts.App = meta.New(".")
	}

	if len(opts.Name.String()) == 0 {
		return errors.New("you must supply a name for your mailer")
	}
	return nil
}
func ( opts * Options ) Validate ( ) error { if opts . App . IsZero ( ) { opts . App = meta . New ( " " ) } if len ( opts . Name . String ( ) ) == 0 { return errors . New ( " " ) } return nil }
// Validate options are useful
Validate options are useful