valid

package
v2.0.0-...-4b7107c Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsLongArg

func IsLongArg(argument *string) error

IsLongArg - return nil error if *descriptor is a valid long descriptor (--{string})

func IsNameArg

func IsNameArg(argument *string) error

IsNameArg - return nil error if *descriptor is a valid positional descriptor name

func IsShortArg

func IsShortArg(argument *string) error

IsShortArg - return nil error if *descriptor is a valid short descriptor (-{char})

func IsValidHelpString

func IsValidHelpString(argument *string) error

IsValidHelpString - validate help string. return error state.

func IsValidYear

func IsValidYear(year int) (string, error)

IsValidYear - return nil error if input is a valid year.

Types

This section is empty.

Jump to

Keyboard shortcuts

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