| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 1 package utils | 5 package utils |
| 2 | 6 |
| 3 // BoolSlice | 7 // BoolSlice |
| 4 type BoolSlice []bool | 8 type BoolSlice []bool |
| 5 | 9 |
| 6 func (s BoolSlice) Len() int { | 10 func (s BoolSlice) Len() int { |
| 7 return len(s) | 11 return len(s) |
| 8 } | 12 } |
| 9 | 13 |
| 10 func (s BoolSlice) Less(i, j int) bool { | 14 func (s BoolSlice) Less(i, j int) bool { |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 return len(s) | 146 return len(s) |
| 143 } | 147 } |
| 144 | 148 |
| 145 func (s UInt64Slice) Less(i, j int) bool { | 149 func (s UInt64Slice) Less(i, j int) bool { |
| 146 return s[i] < s[j] | 150 return s[i] < s[j] |
| 147 } | 151 } |
| 148 | 152 |
| 149 func (s UInt64Slice) Swap(i, j int) { | 153 func (s UInt64Slice) Swap(i, j int) { |
| 150 s[i], s[j] = s[j], s[i] | 154 s[i], s[j] = s[j], s[i] |
| 151 } | 155 } |
| OLD | NEW |