Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HasPreferred ¶
type HasPreferred interface {
HasPreferred(parts types.EmailParts) (string, bool)
}
type Preferrer ¶
type Preferrer struct {
// contains filtered or unexported fields
}
func (*Preferrer) HasPreferred ¶
func (p *Preferrer) HasPreferred(parts types.EmailParts) (string, bool)
HasPreferred returns the input when there isn't a match or a preferred result if it has. The second return argument should be used to discriminate between the two.
Click to show internal directories.
Click to hide internal directories.