slices

package
v1.452.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendNotNil

func AppendNotNil[T any](slice []*T, elems ...*T) []*T

AppendNotNil elements to the slice, only if the element is not nil.

func AppendNotZero

func AppendNotZero[T comparable](slice []T, elems ...T) []T

AppendNotZero elements to the slice, only if the element is not zero.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL