check

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckFileExist

func CheckFileExist(fileName string) bool

func CheckIPType

func CheckIPType(ip string) int

CheckIPType 0:invalid,1:ipv4,2:ipv6

func GoContainStrArr

func GoContainStrArr(element string, arrs []string, caseSensitive bool) bool

GoContainStrArr — Checks if a value exists in an array

func GoInInt32Arr

func GoInInt32Arr(element int32, arrs []int32) bool

func GoInInt64Arr

func GoInInt64Arr(element int64, arrs []int64) bool

func GoInIntArr

func GoInIntArr(element int, arrs []int) bool

func IsNumeric

func IsNumeric(str string) bool

func IsPathExist

func IsPathExist(path string) bool

func IsStartWithAli

func IsStartWithAli(str string) bool

func IsStartWithQQ

func IsStartWithQQ(str string) bool

func IsStartWithWx

func IsStartWithWx(str string) bool

func IsStructFieldExist

func IsStructFieldExist(structObject interface{}, FieldName string) bool

Reflect if an interface is either a struct or a pointer to a struct and has the defined member field, if error is nil, the given FieldName exists and is accessible with reflect.

func IsStructMethodExist

func IsStructMethodExist(structObject interface{}, MethodName string) bool

Reflect if an interface is either a struct or a pointer to a struct and has the defined member method. If error is nil, it means the MethodName is accessible with reflect.

Types

This section is empty.

Jump to

Keyboard shortcuts

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