コード例 #1
0
ファイル: connset.go プロジェクト: uniqush/uniqush-conn
func (self *connSet) Less(than llrb.Item) bool {
	if self == nil {
		return true
	}
	if than == nil {
		return false
	}
	thanCs := than.(*connSet)
	if thanCs == nil {
		return false
	}
	selfKey := llrb.String(self.key())
	thanKey := llrb.String(than.(*connSet).key())
	return selfKey.Less(thanKey)
}
コード例 #2
0
ファイル: connmap.go プロジェクト: notedit/webchan
func (self *connListItem) Less(than llrb.Item) bool {
    selfKey := llrb.String(self.key())
    thanKey := llrb.String(than.(*connListItem).key())
    return selfKey.Less(thanKey)
}