validators

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package validators contains valiators that checks the number format of the string specified as an option argument in command line arguments.

Index

Constants

This section is empty.

Variables

View Source
var ValidateFloat32 func(storeKey, option, optArg string) error = validateFloat32

ValidateFloat32 is the function that validates an opton argument string whether it is valid as a float32 value. If the option argument is invalid, this function returns an OptionArgIsInvalid error.

View Source
var ValidateFloat64 func(storeKey, option, optArg string) error = validateFloat64

ValidateFloat64 is the function that validates an opton argument string whether it is valid as a float64 value. If the option argument is invalid, this function returns an OptionArgIsInvalid error.

View Source
var ValidateInt func(storeKey, option, optArg string) error = validateInt

ValidateInt is the function that validates an opton argument string whether it is valid as a int value. If the option argument is invalid, this function returns an OptionArgIsInvalid error.

View Source
var ValidateInt16 func(storeKey, option, optArg string) error = validateInt16

ValidateInt16 is the function that validates an opton argument string whether it is valid as a int16 value. If the option argument is invalid, this function returns an OptionArgIsInvalid error.

View Source
var ValidateInt32 func(storeKey, option, optArg string) error = validateInt32

ValidateInt32 is the function that validates an opton argument string whether it is valid as a int32 value. If the option argument is invalid, this function returns an OptionArgIsInvalid error.

View Source
var ValidateInt64 func(storeKey, option, optArg string) error = validateInt64

ValidateInt64 is the function that validates an opton argument string whether it is valid as a int64 value. If the option argument is invalid, this function returns an OptionArgIsInvalid error.

View Source
var ValidateInt8 func(storeKey, option, optArg string) error = validateInt8

ValidateInt8 is the function that validates an opton argument string whether it is valid as a int8 value. If the option argument is invalid, this function returns an OptionArgIsInvalid error.

View Source
var ValidateUint func(storeKey, option, optArg string) error = validateUint

ValidateUint is the function that validates an opton argument string whether it is valid as a uint value. If the option argument is invalid, this function returns an OptionArgIsInvalid error.

View Source
var ValidateUint16 func(storeKey, option, optArg string) error = validateUint16

ValidateUint16 is the function that validates an opton argument string whether it is valid as a uint16 value. If the option argument is invalid, this function returns an OptionArgIsInvalid error.

View Source
var ValidateUint32 func(storeKey, option, optArg string) error = validateUint32

ValidateUint32 is the function that validates an opton argument string whether it is valid as a uint32 value. If the option argument is invalid, this function returns an OptionArgIsInvalid error.

View Source
var ValidateUint64 func(storeKey, option, optArg string) error = validateUint64

ValidateUint64 is the function that validates an opton argument string whether it is valid as a uint64 value. If the option argument is invalid, this function returns an OptionArgIsInvalid error.

View Source
var ValidateUint8 func(storeKey, option, optArg string) error = validateUint8

ValidateUint8 is the function that validates an opton argument string whether it is valid as a uint8 value. If the option argument is invalid, this function returns an OptionArgIsInvalid error.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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