Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MergeChannels ¶
func MergeChannels[T any](cs ...chan T) chan T
func Pack ¶ added in v0.4.0
Pack stores two ints in one. Go stores ints as 8 bytes so we store the first int in the bottom four and the second in the top four. This has a limitation of only being able to store a max value of 4294967295.
func RandomString ¶ added in v0.4.0
RandomString returns a cases sensitive random string of the given length. The randonSource and character array are in the function to avoid data races. At this time its overkill to store them in a type but this can be done in the future if necessary.
func RemoveElementFromArray ¶
RemoveElementFromArray does just that, if an index is passed in that is larger than the slice length then the original slice is returned.
Types ¶
type Broadcast ¶ added in v0.7.0
func NewBroadcast ¶ added in v0.7.0
func NewBroadcast() *Broadcast
func (*Broadcast) Unsubscribe ¶ added in v0.7.0
Click to show internal directories.
Click to hide internal directories.