str

package module
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2026 License: Apache-2.0 Imports: 1 Imported by: 19

Documentation

Overview

Package str provides string slice helpers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendIfMissing

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

AppendIfMissing adds a string to a slice when it's not present yet

func StringInSlice deprecated

func StringInSlice(a string, list []string) bool

StringInSlice checks for the existence of a string in the slice

Deprecated: This is a wrapper around slices.Contains()

Types

This section is empty.

Jump to

Keyboard shortcuts

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