Corentin Clabaut
Corentin Clabaut
## Fixes Or Enhances closes #938 **Make sure that you've checked the boxes below before you submit PR:** - [x] Tests exist or have been written that cover this particular...
- [x] I have looked at the documentation [here](https://pkg.go.dev/github.com/go-playground/validator/v10#section-documentation) first? - [x] I have looked at the examples provided that may showcase my question [here](/_examples)? ### Package version: v10 ###...
closes #195
Probably worth updating in a v2
closes #160
closes #6
I guess we could have: ```go type Either3[T1 any, T2 any, T3 any] struct { argId int arg1 T1 arg2 T2 arg3 T3 } ``` Constructors: mo.CreateEither3Arg1() mo.CreateEither3Arg2() mo.CreateEither3Arg3() Methods:...
Could we have a helper function like the following for `Either`? ```go func Map[T any](e Either[L, R], onLeft func(L) T, onRight func(R) T) T ``` It would be useful to...
It would be nice to have a helper function like: ```go func Validate(ok bool, format string, a ...any) error { if !ok { return errors.New(fmt.Sprintf(format, a...)) } return nil }...