diff options
-rw-r--r-- | lib/line/line.go | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/lib/line/line.go b/lib/line/line.go index 656fbce..d4e3e44 100644 --- a/lib/line/line.go +++ b/lib/line/line.go @@ -21,16 +21,9 @@ type CopyableImg interface { type Details []Detail -// Used by sort.Sort. -func (l Details) Len() int { return len(l) } - -// Used by sort.Sort. -func (l Details) Less(i, j int) bool { - return l[i].Avgconf < l[j].Avgconf -} - -// Used by sort.Sort. -func (l Details) Swap(i, j int) { l[i], l[j] = l[j], l[i] } +func (l Details) Len() int { return len(l) } +func (l Details) Less(i, j int) bool { return l[i].Avgconf < l[j].Avgconf } +func (l Details) Swap(i, j int) { l[i], l[j] = l[j], l[i] } // This is an implementation of the CopyableImg interface that // stores the image directly as an image.Image |