utils

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsArrayContain

func IsArrayContain[T comparable](value T, array []T) bool

IsArrayContain -数组是否包含该值

func IsBlank

func IsBlank(value string) bool

func IsBlankArr

func IsBlankArr(values []string) bool

func IsBlankMap

func IsBlankMap(maps map[string]interface{}) bool

func IsBlankTime

func IsBlankTime(t *time.Time) bool

func IsConfSuffix

func IsConfSuffix(suffix string) bool

func IsFloat

func IsFloat(value any) bool

IsFloat - 是否为浮点数

func IsInLoweChar

func IsInLoweChar(word string) bool

func IsInUpChar

func IsInUpChar(word string) bool

IsInUpChar - 是否包含大写字母

func IsNotBlank

func IsNotBlank(value string) bool

func IsNotBlankArr

func IsNotBlankArr(values []string) bool

func IsNumber

func IsNumber(value any) bool

IsNumber - 是否为数字

func StringToBytes

func StringToBytes(s string) []byte

StringToBytes converts string to byte slice without a memory allocation.

func ToString

func ToString(i interface{}) (str string)

func XssEscape

func XssEscape(values string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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