pax_global_header 0000666 0000000 0000000 00000000064 14021105236 0014504 g ustar 00root root 0000000 0000000 52 comment=f21760c49a8d602d863493de796926d2a5c1138d
govalidator-11.0.1/ 0000775 0000000 0000000 00000000000 14021105236 0014077 5 ustar 00root root 0000000 0000000 govalidator-11.0.1/.circleci/ 0000775 0000000 0000000 00000000000 14021105236 0015732 5 ustar 00root root 0000000 0000000 govalidator-11.0.1/.circleci/config.yml 0000664 0000000 0000000 00000000425 14021105236 0017723 0 ustar 00root root 0000000 0000000 version: 2
jobs:
build:
docker:
- image: circleci/golang:1.13
working_directory: /go/src/github.com/asaskevich/govalidator
steps:
- checkout
- run: diff -u /dev/null <(gofmt -d .)
- run: go get -v -t -d ./...
- run: go test -v ./...
govalidator-11.0.1/.github/ 0000775 0000000 0000000 00000000000 14021105236 0015437 5 ustar 00root root 0000000 0000000 govalidator-11.0.1/.github/ISSUE_TEMPLATE/ 0000775 0000000 0000000 00000000000 14021105236 0017622 5 ustar 00root root 0000000 0000000 govalidator-11.0.1/.github/ISSUE_TEMPLATE/BC_Break.md 0000775 0000000 0000000 00000001520 14021105236 0021535 0 ustar 00root root 0000000 0000000 ---
name: 💥 BC Break
about: Have you encountered an issue during upgrade? 💣
---
### BC Break Report
| Q | A
|------------ | ------
| Version | x.y.z
#### Summary
#### Previous behavior
#### Current behavior
#### How to reproduce
govalidator-11.0.1/.github/ISSUE_TEMPLATE/Bug.md 0000775 0000000 0000000 00000001214 14021105236 0020662 0 ustar 00root root 0000000 0000000 ---
name: 🐞 Bug Report
about: Something is broken? 🔨
---
### Bug Report
| Q | A
|------------ | ------
| Version(s) | x.y.z
#### Summary
#### Current behavior
#### How to reproduce
#### Expected behavior
govalidator-11.0.1/.github/ISSUE_TEMPLATE/Feature_Request.md 0000775 0000000 0000000 00000000622 14021105236 0023252 0 ustar 00root root 0000000 0000000 ---
name: 🎉 Feature Request
about: You have an idea or feature that should be implemented? 🎩
---
### Feature Request
| Q | A
|------------ | ------
| New Feature | yes
| RFC | yes/no
| BC Break | yes/no
#### Summary
govalidator-11.0.1/.github/ISSUE_TEMPLATE/config.yml 0000775 0000000 0000000 00000000322 14021105236 0021612 0 ustar 00root root 0000000 0000000 blank_issues_enabled: false
contact_links:
- name: ❓ Support & Discussion
url: https://gitter.im/asaskevich/govalidator
about: 'You can leave comments and participate in the discussion via Gitter:'
govalidator-11.0.1/.github/PULL_REQUEST_TEMPLATE.md 0000775 0000000 0000000 00000003053 14021105236 0021244 0 ustar 00root root 0000000 0000000
| Q | A
|-------------- | ------
| Documentation | yes/no
| Bugfix | yes/no
| BC Break | yes/no
| New Feature | yes/no
| RFC | yes/no
| QA | yes/no
### Description
govalidator-11.0.1/.gitignore 0000664 0000000 0000000 00000000315 14021105236 0016066 0 ustar 00root root 0000000 0000000 bin/
.idea/
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
# Test binary, built with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
govalidator-11.0.1/.travis.yml 0000664 0000000 0000000 00000000323 14021105236 0016206 0 ustar 00root root 0000000 0000000 language: go
dist: xenial
go:
- '1.10'
- '1.11'
- '1.12'
- '1.13'
- 'tip'
script:
- go test -coverpkg=./... -coverprofile=coverage.info -timeout=5s
- bash <(curl -s https://codecov.io/bash)
govalidator-11.0.1/CODE_OF_CONDUCT.md 0000775 0000000 0000000 00000004441 14021105236 0016704 0 ustar 00root root 0000000 0000000 # Contributor Code of Conduct
This project adheres to [The Code Manifesto](http://codemanifesto.com)
as its guidelines for contributor interactions.
## The Code Manifesto
We want to work in an ecosystem that empowers developers to reach their
potential — one that encourages growth and effective collaboration. A space
that is safe for all.
A space such as this benefits everyone that participates in it. It encourages
new developers to enter our field. It is through discussion and collaboration
that we grow, and through growth that we improve.
In the effort to create such a place, we hold to these values:
1. **Discrimination limits us.** This includes discrimination on the basis of
race, gender, sexual orientation, gender identity, age, nationality,
technology and any other arbitrary exclusion of a group of people.
2. **Boundaries honor us.** Your comfort levels are not everyone’s comfort
levels. Remember that, and if brought to your attention, heed it.
3. **We are our biggest assets.** None of us were born masters of our trade.
Each of us has been helped along the way. Return that favor, when and where
you can.
4. **We are resources for the future.** As an extension of #3, share what you
know. Make yourself a resource to help those that come after you.
5. **Respect defines us.** Treat others as you wish to be treated. Make your
discussions, criticisms and debates from a position of respectfulness. Ask
yourself, is it true? Is it necessary? Is it constructive? Anything less is
unacceptable.
6. **Reactions require grace.** Angry responses are valid, but abusive language
and vindictive actions are toxic. When something happens that offends you,
handle it assertively, but be respectful. Escalate reasonably, and try to
allow the offender an opportunity to explain themselves, and possibly
correct the issue.
7. **Opinions are just that: opinions.** Each and every one of us, due to our
background and upbringing, have varying opinions. That is perfectly
acceptable. Remember this: if you respect your own opinions, you should
respect the opinions of others.
8. **To err is human.** You might not intend it, but mistakes do happen and
contribute to build experience. Tolerate honest mistakes, and don't
hesitate to apologize if you make one yourself.
govalidator-11.0.1/CONTRIBUTING.md 0000664 0000000 0000000 00000010252 14021105236 0016330 0 ustar 00root root 0000000 0000000 #### Support
If you do have a contribution to the package, feel free to create a Pull Request or an Issue.
#### What to contribute
If you don't know what to do, there are some features and functions that need to be done
- [ ] Refactor code
- [ ] Edit docs and [README](https://github.com/asaskevich/govalidator/README.md): spellcheck, grammar and typo check
- [ ] Create actual list of contributors and projects that currently using this package
- [ ] Resolve [issues and bugs](https://github.com/asaskevich/govalidator/issues)
- [ ] Update actual [list of functions](https://github.com/asaskevich/govalidator#list-of-functions)
- [ ] Update [list of validators](https://github.com/asaskevich/govalidator#validatestruct-2) that available for `ValidateStruct` and add new
- [ ] Implement new validators: `IsFQDN`, `IsIMEI`, `IsPostalCode`, `IsISIN`, `IsISRC` etc
- [x] Implement [validation by maps](https://github.com/asaskevich/govalidator/issues/224)
- [ ] Implement fuzzing testing
- [ ] Implement some struct/map/array utilities
- [ ] Implement map/array validation
- [ ] Implement benchmarking
- [ ] Implement batch of examples
- [ ] Look at forks for new features and fixes
#### Advice
Feel free to create what you want, but keep in mind when you implement new features:
- Code must be clear and readable, names of variables/constants clearly describes what they are doing
- Public functions must be documented and described in source file and added to README.md to the list of available functions
- There are must be unit-tests for any new functions and improvements
## Financial contributions
We also welcome financial contributions in full transparency on our [open collective](https://opencollective.com/govalidator).
Anyone can file an expense. If the expense makes sense for the development of the community, it will be "merged" in the ledger of our open collective by the core contributors and the person who filed the expense will be reimbursed.
## Credits
### Contributors
Thank you to all the people who have already contributed to govalidator!
### Backers
Thank you to all our backers! [[Become a backer](https://opencollective.com/govalidator#backer)]
### Sponsors
Thank you to all our sponsors! (please ask your company to also support this open source project by [becoming a sponsor](https://opencollective.com/govalidator#sponsor))
