package
Version:
v0.38.0-victorialogs
Opens a new window with list of versions in this module.
Published: Oct 29, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func ExtendCapacity[T any](a []T, itemsToAdd int) []T
ExtendCapacity returns a with the capacity extended to len(a)+itemsToAdd.
It may allocate new slice if cap(a) is smaller than len(a)+itemsToAdd.
func SetLength[T any](a []T, newLen int) []T
SetLength sets len(a) to newLen and returns the result.
It may allocate new slice if cap(a) is smaller than newLen.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.