checker

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayContains

func ArrayContains[T AllowedDataType](slice []T, x T) bool

Check wether the slice in int64, string, or float data type contains the input x

func ArrayDeduplicate

func ArrayDeduplicate[T AllowedDataType](values []T) []T

Remove duplicate values in int64, string, or float data type slice

func ArrayInt64Contains

func ArrayInt64Contains(slice []int64, x int64) bool

Check wether the slice contains the input x

func IsEmail

func IsEmail(email string) bool

func IsPhoneNumber

func IsPhoneNumber(phone string) bool

Types

type AllowedDataType

type AllowedDataType interface {
	int64 | string | float64
}

Jump to

Keyboard shortcuts

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