Documentation
¶
Index ¶
Constants ¶
View Source
const CharactersLibrary = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
Variables ¶
This section is empty.
Functions ¶
func GenerateRandomBytes ¶
GenerateRandomBytes generate random 'length' readable Bytes
func GenerateRandomSlice ¶
func GenerateRandomSlice[T Computable](length int, maxValue T, specialValues ...T) []T
GenerateRandomSlice generate random slice, you can set 'length' and 'max value' of slice
@param length: length of slice, min is 10
@param maxValue: max value of slice element, in fact, slice[i] is random in the area [-'max value', 'max value')
@param specialValues: special values in test, for each method, it may need some special case when test,
more values than 'length' will be ignored
func GenerateRandomString ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.