# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
No description provided by the author
Contains checks whether the given slice has a specific item.
No description provided by the author
Equal tells whether a and b contain the same elements.
Extend extends the slice 's' to length 'n' by appending zero-valued elements.
No description provided by the author
I2OSP converts a nonnegative integer to an octet string of a specified length.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IsDirEmpty checks if a directory is empty.
IsDirNotExistsOrEmpty checks if the path exists and, if so, whether the directory is empty.
IsFlagSet checks if the mask is set for the given flags.
IsSubset checks if subSet is a subset of parentSet.
No description provided by the author
LogScale computes 2^⌈log₂(val)⌉, where ⌈x⌉ represents the ceiling of x.
No description provided by the author
Max returns the biggest of two integer numbers.
Merge accepts multiple slices and returns a single merged slice.
Min returns the smallest of two integer numbers.
No description provided by the author
MoveDirectory moves a directory from srcDir to dstDir, including all its contents.
NewFixedReader returns a new io.Reader that will error once more bytes than the specified max have been read.
NewFixedWriter returns a new io.Writer that will error once more bytes than the specified max have been written.
OS2IP converts an octet string to a nonnegative integer.
No description provided by the author
RandInt16 returns a random int16 in between 0 and max.
RandInt32 returns a random int32 in between 0 and max.
RandInt64 returns a random int64 in between 0 and max.
RandUint16 returns a random uint16 in between 0 and max.
RandUint32 returns a random uint32 in between 0 and max.
RandUint64 returns a random uint64 in between 0 and max.
No description provided by the author
RemoveFirstOccurrenceOf removes the first occurrence of element e from slice s.
Reverse replace the contents of a slice with the same elements but in reverse order.
RoundNow returns the result of rounding sec to the current time in UTC.
SafeCmp compares two slices with constant time.
SanitizeArchivePath mitigates the "Zip Slip" vulnerability by sanitizing archive file paths.
SetFlag applies mask to the flags.
Shuffle shuffles a slice of any type.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StringToBytes converts a string to a slice of bytes.
Subtracts subtracts slice2 from slice1 in order.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
UnsetFlag removes mask from the flags.
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
FixedReader implements the io.Reader interface and intentionally allows testing of error paths by forcing short reads.
FixedWriter implements the io.Writer interface and intentionally allows testing of error paths by forcing short writes.