collection

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

* Copyright (C) 2020-2022 Arm Limited or its affiliates and Contributors. All rights reserved. * SPDX-License-Identifier: Apache-2.0

* Copyright (C) 2020-2022 Arm Limited or its affiliates and Contributors. All rights reserved. * SPDX-License-Identifier: Apache-2.0

* Copyright (C) 2020-2022 Arm Limited or its affiliates and Contributors. All rights reserved. * SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(slice []bool) bool

func Any

func Any(slice []bool) bool

func Find

func Find(slice *[]string, val string) (int, bool)

Find looks for an element in a slice. If found it will return its index and true; otherwise it will return -1 and false.

func GenericRemove added in v1.4.0

func GenericRemove(equal func(string, string) bool, slice []string, val ...string) []string

GenericRemove looks for elements in a slice using the equal function. If they're found, it will remove them from the slice.

func ParseCommaSeparatedList

func ParseCommaSeparatedList(input string) []string

func Remove added in v1.4.0

func Remove(slice []string, val ...string) []string

Remove looks for elements in a slice. If they're found, it will remove them.

Types

This section is empty.

Jump to

Keyboard shortcuts

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