mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
13 lines
340 B
Go
13 lines
340 B
Go
package pagerduty
|
|
|
|
import "github.com/PagerDuty/go-pagerduty"
|
|
|
|
type ByEscalationLevel []pagerduty.OnCall
|
|
|
|
func (s ByEscalationLevel) Len() int { return len(s) }
|
|
func (s ByEscalationLevel) Swap(i, j int) { s[i], s[j] = s[j], s[i] }
|
|
|
|
func (s ByEscalationLevel) Less(i, j int) bool {
|
|
return s[i].EscalationLevel < s[j].EscalationLevel
|
|
}
|