Skip to content

Commit

Permalink
refactor(email): export priority type
Browse files Browse the repository at this point in the history
Exporting the priority type helps users of the library to translate the priority
type to their own priority type.
  • Loading branch information
nikoksr committed Jul 17, 2023
1 parent 457c8da commit 782122d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions email.go
Original file line number Diff line number Diff line change
Expand Up @@ -384,18 +384,18 @@ func addAddress(addressList []string, address string, allowDuplicateAddress bool
return append(addressList, address), nil
}

type priority int
type Priority int

const (
// PriorityLow sets the email priority to Low
PriorityLow priority = iota
// PriorityHigh sets the email priority to High
// PriorityLow sets the email Priority to Low
PriorityLow Priority = iota
// PriorityHigh sets the email Priority to High
PriorityHigh
)

// SetPriority sets the email message priority. Use with
// SetPriority sets the email message Priority. Use with
// either "High" or "Low".
func (email *Email) SetPriority(priority priority) *Email {
func (email *Email) SetPriority(priority Priority) *Email {
if email.Error != nil {
return email
}
Expand Down

0 comments on commit 782122d

Please sign in to comment.