checkfn

package
v0.6.13 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(data, elem any) (valid, found bool)

Contains try loop over the data check if the data includes the element.

data allow types: string, map, array, slice

map         - check key exists
string      - check sub-string exists
array,slice - check sub-element exists

Returns:

  • valid: data is valid
  • found: element was found

return (false, false) if impossible. return (true, false) if element was not found. return (true, true) if element was found.

func IsEmpty

func IsEmpty(v any) bool

IsEmpty value check

func IsNil

func IsNil(v any) bool

IsNil value check

Types

This section is empty.

Jump to

Keyboard shortcuts

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