func ordLevel(l Level) int { … } func (a Level) Less(b Level) bool { … } func (a Level) GreaterOrEqual(b Level) bool { … }