mirror of
https://github.com/duke-git/lancet.git
synced 2026-03-01 00:35:28 +08:00
refactor: interface{} -> any
This commit is contained in:
1 parent
af480efa8c
commit
c939b26cb8
34 files changed
+194
-195
No files matched your search
@@ -9,5 +9,5 @@ type Comparator interface {
|
||||
// Compare v1 and v2
|
||||
// Ascending order: should return 1 -> v1 > v2, 0 -> v1 = v2, -1 -> v1 < v2
|
||||
// Descending order: should return 1 -> v1 < v2, 0 -> v1 = v2, -1 -> v1 > v2
|
||||
Compare(v1, v2 interface{}) int
|
||||
Compare(v1, v2 any) int
|
||||
}
|
||||
Reference in new issue
Block a user