Пример #1
0
func (list directoryList) Less(i, j int) bool {
	return verstr.Less(list[i].Name, list[j].Name)
}
Пример #2
0
// Less compares the hostnames of left and right.
func (mdb *Mdb) Less(left, right int) bool {
	return verstr.Less(mdb.Machines[left].Hostname,
		mdb.Machines[right].Hostname)
}