mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-12 16:52:29 +08:00
refactor: interface{} -> any
This commit is contained in:
@@ -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