github.com/insionng/yougam@v0.0.0-20170714101924-2bc18d833463/libraries/petar/GoLLRB/llrb/util.go (about) 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 5 package llrb 6 7 type Int int 8 9 func (x Int) Less(than Item) bool { 10 return x < than.(Int) 11 } 12 13 type String string 14 15 func (x String) Less(than Item) bool { 16 return x < than.(String) 17 }