valid

package
v0.0.0-...-66b7006 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmailPattern = "^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\\.[a-zA-Z0-9-.]+$"
)

Variables

View Source
var (
	EmailRegEx = regexp.MustCompile(EmailPattern)
)

Functions

func IsEmail

func IsEmail(s string) bool

func IsInt

func IsInt(s string) (int, bool)

func IsIntBetween

func IsIntBetween(s string, min int, max int) (int, bool)

func IsLength

func IsLength(s string, min int, max int) bool

func IsNull

func IsNull(s string) bool

func IsNullString

func IsNullString(s sql.NullString) bool

func IsTimezone

func IsTimezone(zone string) bool

func ToNullFloat64

func ToNullFloat64(f float64) sql.NullFloat64

func ToNullString

func ToNullString(s string) sql.NullString

func ToNullTime

func ToNullTime(t time.Time) pq.NullTime

Types

This section is empty.

Jump to

Keyboard shortcuts

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