validator

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package validator providers utilities for user input validation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowedHexChar

func AllowedHexChar(input string) error

AllowedHexChar checks if a string contains allowed hex characters.

func AllowedNumberChar

func AllowedNumberChar(input string) error

AllowedNumberChar checks if a string contains allowed number characters.

func IsMap

func IsMap(input string) error

IsMap checks if the string can be parsed as a map.

Example: "key=value,key2=value2" is a map.

func IsNumber

func IsNumber(s string) error

IsNumber checks if the string is a number.

func IsNumberChar

func IsNumberChar(ch rune) bool

IsNumberChar returns true when the character is allowed when writing a number.

Types

This section is empty.

Jump to

Keyboard shortcuts

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