Skip to content

Commit 47471be

Browse files
authored
refactor(email): export priority type (#84)
Exporting the priority type helps users of the library to translate the priority type to their own priority type.
1 parent 457c8da commit 47471be

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

email.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -384,18 +384,18 @@ func addAddress(addressList []string, address string, allowDuplicateAddress bool
384384
return append(addressList, address), nil
385385
}
386386

387-
type priority int
387+
type Priority int
388388

389389
const (
390-
// PriorityLow sets the email priority to Low
391-
PriorityLow priority = iota
392-
// PriorityHigh sets the email priority to High
390+
// PriorityLow sets the email Priority to Low
391+
PriorityLow Priority = iota
392+
// PriorityHigh sets the email Priority to High
393393
PriorityHigh
394394
)
395395

396-
// SetPriority sets the email message priority. Use with
396+
// SetPriority sets the email message Priority. Use with
397397
// either "High" or "Low".
398-
func (email *Email) SetPriority(priority priority) *Email {
398+
func (email *Email) SetPriority(priority Priority) *Email {
399399
if email.Error != nil {
400400
return email
401401
}

0 commit comments

Comments
 (0)