Poll: Package for Validators #8
carlosforero
started this conversation in
Polls
Replies: 1 comment 2 replies
-
i agree to separate the validation rules into a separate package. but i'm against |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This poll is regarding the package for validators.
Currently, Valgo has only one package,
github.com/cohesivestack/valgo
, so using the library functionality requires using the valgo package:So, the README suggests using an alias to make the code more readable:
But what if the validators are moved to the package
valgo/v
, so that the core functionality of Valgo will be kept in thevalgo
package? This could make the difference between a Validation session and the Validators more clear, and make it more concise to get external validator libraries for Valgo from the community. Consider the example:Suppose someone in the community has created a net validator for Valgo:
So the question is: Would you prefer to keep the current setup with only the
valgo
package, or add a package for the validators,valgo/v
, and keep the core functionality invalgo
?6 votes ·
Beta Was this translation helpful? Give feedback.
All reactions