slice

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package slice contains a set of utilities to deal with slices

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IntSliceContains

func IntSliceContains(sl []int, v int) bool

IntSliceContains check if a slice contains the specified int value

func StringSliceContains

func StringSliceContains(sl []string, v string) bool

StringSliceContains check if a slice contains the specified int value

func ToSlice

func ToSlice(m map[string]struct{}) (s []string)

ToSlice creates a slice with all string keys from a map

func UInt32SliceContains

func UInt32SliceContains(sl []uint32, v uint32) bool

UIntSliceContains check if a slice contains the specified uint value

Types

This section is empty.

Jump to

Keyboard shortcuts

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