util.go 339 B

1234567891011121314151617
  1. // Copyright 2010 Petar Maymounkov. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. package llrb
  5. type Int int
  6. func (x Int) Less(than Item) bool {
  7. return x < than.(Int)
  8. }
  9. type String string
  10. func (x String) Less(than Item) bool {
  11. return x < than.(String)
  12. }