sliceutil

package
v0.0.0-...-a5f7211 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 0 Imported by: 9

Documentation

Overview

Common utils (Contains()/Filter()/..) for common types of slices

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsInt

func ContainsInt(items []int, item int) bool

func ContainsString

func ContainsString(items []string, item string) bool

func FilterInt

func FilterInt(items []int, fn func(item int) bool) []int

func FilterString

func FilterString(items []string, fn func(item string) bool) []string

Types

This section is empty.

Jump to

Keyboard shortcuts

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