utils

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(array interface{}, val interface{}) (index int)

Contains Returns the index position of the val in array

func ContainsBool

func ContainsBool(array []bool, val bool) (index int)

ContainsBool Returns the index position of the bool val in array

func ContainsComplex

func ContainsComplex(array []complex128, val complex128) (index int)

ContainsComplex Returns the index position of the complex128 val in array

func ContainsFloat

func ContainsFloat(array []float64, val float64) (index int)

ContainsFloat Returns the index position of the float64 val in array

func ContainsInt

func ContainsInt(array []int64, val int64) (index int)

ContainsInt Returns the index position of the int64 val in array

func ContainsString

func ContainsString(array []string, val string) (index int)

ContainsString Returns the index position of the string val in array

func ContainsUint

func ContainsUint(array []uint64, val uint64) (index int)

ContainsUint Returns the index position of the uint64 val in array

func GetHostIP4

func GetHostIP4() ([]string, error)

func IsLegalIP4

func IsLegalIP4(s string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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