Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearSignals ¶ added in v0.5.0
ClearSignals clears any signals that have been registered on the provided channel and closes the channel.
func CopyBytes ¶ added in v0.5.0
CopyBytes returns a copy of the provided byte slice. If nil is provided, nil will be returned.
func HandleSignals ¶ added in v0.5.0
HandleSignals calls f if the go runtime receives the any of the provided signals with the received signal.
If f is nil or there are no provided signals, then nil will be returned. Otherwise, a signal channel will be returned that can be used to clear the signals registed by this function by valling ClearSignals.
func IsSortedAndUnique ¶
IsSortedAndUnique returns true if the elements in the data are unique and sorted.
func IsSortedAndUniqueUint32 ¶
IsSortedAndUniqueUint32 returns true if the array of uint32s are sorted and unique