sliceutil

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package sliceutil provides useful functions for working with slices not provided by the standard library.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveZeroValues

func RemoveZeroValues[S ~[]E, E any](s S) S

RemoveZeroValues returns a copy of s with all zero-valued elements removed.

func ToLower

func ToLower(s []string) []string

ToLower returns a copy of s with all letters in all elements mapped to lower case.

func Trim

func Trim(s []string) []string

Trim returns a copy of s with all leading and trailing whitespace in all elements removed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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