Help us shape the future of Go! Take the 2026 Go Developer Survey

stringutils

package
v1.20.27 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 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