slicesutils

package
v0.0.0-...-ca3ac9b Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package slicesutils some convenient functions on slices

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

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

Contains checking if the e string is present in the slice s

func Find

func Find(s []string, e string) int

Find finding the index of the e string in the s slice

func Remove

func Remove(s []string, i int) []string

Remove removes the entry with the index i from the slice

func RemoveString

func RemoveString(s []string, e string) []string

RemoveString removes the e entry from the s slice, if e is not present in the slice, nothing will happen

Types

This section is empty.

Jump to

Keyboard shortcuts

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