Linting, README update, drone CI recipe update.
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
# ValiWork - validation framework
|
||||
|
||||
[](https://ci.dev.pztrn.name/pztrn/valiwork) [](https://discord.gg/CvUnEpM) 
|
||||
|
||||
ValiWork is a validation framework that provides sane API and ability to write own validators that returns arbitrary things. It is goroutine-safe and fast.
|
||||
|
||||
## Default validators
|
||||
@@ -12,6 +14,8 @@ valiwork.InitializeDefaultValidators()
|
||||
|
||||
Default validators will return ``error``.
|
||||
|
||||
*There are no default validators ATM. Feel free to submit PR with them!*
|
||||
|
||||
## Validators registering and namespacing
|
||||
|
||||
Default validators using "T_N" scheme, where ``T`` is data type (string, int, int64, etc.) and ``N`` is a validator name (which can be a generic string). Please, use same naming scheme. Example good validators names:
|
||||
|
||||
Reference in New Issue
Block a user