slices

package
v1.408.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Append

func Append[T any](slice []*T, eq func(*T) bool, elems ...*T) []*T

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

func AppendNotNil added in v1.396.0

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

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

func AppendNotZero added in v1.396.0

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