Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SortedKeys ¶
SortedKeys returns the keys of a map sorted alphabetically.
An empty or nil map yields an empty slice rather than a nil one, so a caller that serializes the result writes an empty list and not a null.
Not slices.Sorted(maps.Keys(m)): that grows without a size hint, measured at 3 to 15 allocations against 1 here, and this has callers on the walk and generate paths.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.