Documentation
¶
Overview ¶
Package quick provides faster alternatives to common operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bytes ¶
Bytes converts a string into a byte slice without extra allocations. Must not be used if the resulting byte slice could be mutated.
func Delete ¶
Delete removes the elements s[i:j] from s, returning the modified slice. Panics if j > len(s) or s[i:j] is not a valid slice of s. Performs fast removal without preserving the order of elements.
func Slice ¶
func Slice[Out, In any, InSlice ~[]In](input InSlice) (output []Out)
Slice converts a slice of one type to a slice of another type without extra allocations. Use only when type In can be converted to type Out.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.