1package types 2 3type SortField int 4 5const ( 6 SortArrival SortField = iota 7 SortCc 8 SortDate 9 SortFrom 10 SortRead 11 SortSize 12 SortSubject 13 SortTo 14) 15 16type SortCriterion struct { 17 Field SortField 18 Reverse bool 19} 20