slice

package
v1.122.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConcatStringSlices

func ConcatStringSlices(slices ...[]string) []string

func IncludeString

func IncludeString(l []string, s string) []string

IncludeString inserts the given string to the sorted slice if not already included. It is assumed that the slice is already in sorted order.

func IsListOfStringInterfaceMaps

func IsListOfStringInterfaceMaps(list []interface{}) bool

IsListOfStringInterfaceMaps returns true if the given list of interface{} values is actually a list of map[string]interface{} values. Returns false if the given list is empty.

func RemoveStringFromStringSlice

func RemoveStringFromStringSlice(l []string, s string) []string

func Reverse added in v1.105.0

func Reverse(slice []string)

func StringSliceContains

func StringSliceContains(l []string, s string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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