stringutils

package
v1.17.0-beta30 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendIfMissing added in v1.17.0

func AppendIfMissing(slice []string, value string) []string

AppendIfMissing returns a slice, with the provided value included If the value already exists in the slice, it will not be duplicated

func DeleteOneByValue

func DeleteOneByValue(slice []string, value string) []string

Only deletes the first instance of value! Takes a slice and a value and if that value is found, uses Delete from the exp.slices package to remove it. Otherwise returns the original slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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