validationhelper

package
v0.0.0-...-87346ed Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAlpha

func IsAlpha(val string) bool

IsAlpha check if the string contains only letters. Empty string is valid.

func IsAlphanumSpaceHyphenUnderscore

func IsAlphanumSpaceHyphenUnderscore(val string) bool

IsAlphanumeric check if the string contains only letters, numbers, space, hypens, and underscore. Only allow letters and numbers at the start and the end. Empty string is valid.

func IsAlphanumeric

func IsAlphanumeric(val string) bool

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

func IsFloat

func IsFloat(val string) bool

IsFloat check if the string is a float.

func IsNumeric

func IsNumeric(val string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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