Validate input data in Go https://pkg.go.dev/github.com/annybs/go-validate
|
пре 10 месеци | |
---|---|---|
LICENSE.md | пре 11 месеци | |
README.md | пре 10 месеци | |
all.go | пре 1 година | |
all_test.go | пре 10 месеци | |
chars.go | пре 1 година | |
chars_test.go | пре 10 месеци | |
email.go | пре 1 година | |
email_test.go | пре 10 месеци | |
equal.go | пре 1 година | |
equal_test.go | пре 10 месеци | |
error.go | пре 1 година | |
error_test.go | пре 10 месеци | |
go.mod | пре 10 месеци | |
in.go | пре 1 година | |
in_test.go | пре 10 месеци | |
length.go | пре 10 месеци | |
length_test.go | пре 10 месеци | |
number.go | пре 1 година | |
number_test.go | пре 10 месеци | |
size.go | пре 10 месеци | |
size_test.go | пре 10 месеци | |
url.go | пре 1 година | |
url_test.go | пре 10 месеци | |
uuid.go | пре 1 година | |
uuid_test.go | пре 10 месеци |
A suite of straightforward validation functions. You put something in, you get back nil
or an error.
You can use errors.Is()
to ascertain the type of errors returned by validation functions. This may be helpful to control side effects, particularly if you are using multiple validators or want to change the error message.
See LICENSE.md