inslice

package
v0.0.131 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2023 License: MIT Imports: 2 Imported by: 3

Documentation

Overview

Package inslice provides functions to search in slices

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIndex added in v0.0.90

func CheckIndex(index int, list interface{}) error

func Float32

func Float32(a float32, list *[]float32) bool

func Float64

func Float64(a float64, list *[]float64) bool

func Int

func Int(a int, list *[]int) bool

func Int32

func Int32(a int32, list *[]int32) bool

func Int64

func Int64(a int64, list *[]int64) bool

func IsIndexExists added in v0.0.76

func IsIndexExists(index int, list interface{}) bool

func String

func String(a string, list *[]string) bool

Types

type IndexNotExistsError added in v0.0.79

type IndexNotExistsError struct {
	Index int
}

func (*IndexNotExistsError) Error added in v0.0.79

func (e *IndexNotExistsError) Error() string

Jump to

Keyboard shortcuts

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