Documentation ¶
Overview ¶
Package cmp provides a set of comparison functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ByPtrValue ¶
type ByPtrValue []*string
ByPtrValue is a type to sort a slice of pointers to strings.
func (ByPtrValue) Less ¶
func (s ByPtrValue) Less(i, j int) bool
Less returns true if the element with index i should sort before the element with index j.
func (ByPtrValue) Swap ¶
func (s ByPtrValue) Swap(i, j int)
Swap swaps the elements with indexes i and j.
Click to show internal directories.
Click to hide internal directories.