You've already forked json-iterator
mirror of
https://github.com/json-iterator/go.git
synced 2025-06-30 23:23:49 +02:00
feature #384: Specify custom map key sort function
This commit is contained in:
@ -30,6 +30,11 @@ type ValEncoder interface {
|
||||
Encode(ptr unsafe.Pointer, stream *Stream)
|
||||
}
|
||||
|
||||
// MapKeySorter is used to define a custom function for sorting the keys of maps
|
||||
type MapKeySorter interface {
|
||||
Sort(keyA string, keyB string) bool
|
||||
}
|
||||
|
||||
type checkIsEmpty interface {
|
||||
IsEmpty(ptr unsafe.Pointer) bool
|
||||
}
|
||||
|
Reference in New Issue
Block a user