cmp

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MPL-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAlphanumeric

func IsAlphanumeric(s string) bool

IsAlphanumeric check if the text contains only letters and numbers. Empty text is valid.

func IsImageData

func IsImageData(data []byte) bool

IsImageData 是否是图像数据

func IsNumeric

func IsNumeric(s string) bool

IsNumeric check if the text contains only numbers. Empty text is valid.

func IsValidMobile

func IsValidMobile(mobile string) bool

IsValidMobile check if the text is valid chinese mobile number

Types

type Utils

type Utils interface {
	IsValidMobile(mobile string) bool
	IsAlphanumeric(s string) bool
	IsNumeric(s string) bool
	IsImageData(data []byte) bool
}

Jump to

Keyboard shortcuts

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