Files
chain33-im/dtask/pkg/rbtree/util.go
2022-03-17 15:55:27 +08:00

22 lines
512 B
Go

// Copyright 2015, Hu Keping. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package rbtree
// Int is type of int
type Int int
// Less returns whether x(Int) is smaller than specified item
func (x Int) Less(than Item) bool {
return x < than.(Int)
}
// String is type of string
type String string
// Less returns whether x(String) is smaller than specified item
func (x String) Less(than Item) bool {
return x < than.(String)
}