stringslice

package
v1.39.7 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(sl []string, s string) bool

Contains returns true if a string slice contains the given string

func Index

func Index(sl []string, s string) int

Index returns the index of a first occurrence of a string within a string slice

func Insert

func Insert(sl []string, index int, insert []string) []string

Insert inserts a string slice into another string slice at the given index

func Remove

func Remove(s []string, target string) []string

Remove removes a string from a slice of strings

Types

This section is empty.

Jump to

Keyboard shortcuts

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