Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AreStringSlicesEqual ¶ added in v0.28.0
AreStringSlicesEqual returns true if the two string slices are equal.
func Concat ¶
Concat concatenates multiple []byte into one []byte with efficient one-time allocation.
func EnsureByteSliceSize ¶
EnsureByteSliceSize returns a copy of input bytes with given length trimming or left-padding with zero bytes accordingly
func Fill ¶ added in v0.39.0
Fill constructs a slice of type T with length n. The slice is then filled with input "val".
func MakeRange ¶ added in v0.23.9
func MakeRange[T constraints.Integer](min, max T) []T
MakeRange returns a slice of numbers [min, max). The range includes min and excludes max.
func StringSliceContainsElement ¶ added in v0.28.0
StringSliceContainsElement returns true if the string slice contains the element.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.