Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EqualRange ¶
EqualRange returns the range of indices where the target value is located in the sorted slice. If the target value is not found, it returns the range where the target value should be inserted. The slice must be sorted in non-decreasing order.
func Find ¶
Find returns the index of the target value in the sorted slice. If the target value is not found, it returns the index where the target value should be inserted and the second return value is false. The slice must be sorted in non-decreasing order.
func LowerBound ¶
LowerBound returns the first index of the target value in the sorted slice. If the target value is not found, it returns the index where the target value should be inserted. The slice must be sorted in non-decreasing order.
func UpperBound ¶
UpperBound returns the last index of the target value in the sorted slice. If the target value is not found, it returns the index where the target value should be inserted. The slice must be sorted in non-decreasing order.
Types ¶
This section is empty.