An idiomatic Go (golang) validation package. Supports configurable and extensible validation rules (validators) using normal language constructs instead of error-prone struct tags.
MIT License
3.76k
stars
223
forks
source link
Add an entry in `is` module for Posix environment variables #186
The POSIX standards on shells section of IEEE Std 1003.1-2008 / IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard doesn't define the lexical convention for variable names, nonetheless, as described here, we could make sure the value comply with regex ^[a-zA-Z_][a-zA-Z0-9_]*$ in order to cover most usecases.
Having it in is would help validating environment variables
The POSIX standards on shells section of IEEE Std 1003.1-2008 / IEEE POSIX P1003.2/ISO 9945.2 Shell and Tools standard doesn't define the lexical convention for variable names, nonetheless, as described here, we could make sure the value comply with regex
^[a-zA-Z_][a-zA-Z0-9_]*$
in order to cover most usecases.Having it in
is
would help validating environment variables