Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomString ¶
Taken from https://gist.github.com/dopey/c69559607800d2f2f90b1b1ed4e550fb GenerateRandomString returns a securely generated random string. It will return an error if the system's secure random number generator fails to function correctly, in which case the caller should not continue.
func InStringSlice ¶
func RemoveFromStringSlice ¶
func SortInt32Slice ¶
func SortInt32Slice(x []int32)
Types ¶
type Broker ¶
type Broker[T any] struct { // contains filtered or unexported fields }
func (*Broker[T]) Unsubscribe ¶
func (b *Broker[T]) Unsubscribe(msgCh chan T)
type Int32Slice ¶
type Int32Slice []int32
Int32Slice attaches the methods of Interface to []int32, sorting in increasing order.
func (Int32Slice) Len ¶
func (x Int32Slice) Len() int
func (Int32Slice) Less ¶
func (x Int32Slice) Less(i, j int) bool
func (Int32Slice) Swap ¶
func (x Int32Slice) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.