utils

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any

func Any[T any](predicate func(T) bool, data ...T) bool

Any returns true if the predicate is true for any elements in data.

func IsNilOrEmpty

func IsNilOrEmpty[inputType comparable](val *inputType) bool

IsNilOrEmpty returns true if the value is nil or equal to the empty value.

Types

type KeywordMap added in v0.0.3

type KeywordMap struct{}

func NewKeywordMap added in v0.0.3

func NewKeywordMap() *KeywordMap

func (*KeywordMap) IsKeyword added in v0.0.3

func (k *KeywordMap) IsKeyword(keyword string) bool

Jump to

Keyboard shortcuts

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