Open rtomadpg opened 5 months ago
Here is a little PR to say thank you, for providing your framework.
Let's add a validator for IPv4 bind addresses.
Examples of valid input:
:9000
1.2.3.4:7777
My use case: I need this validator for an application's config including IP based socket listener addresses, like: :9999 or 127.0.0.1:9999
:9999
127.0.0.1:9999
Make sure that you've checked the boxes below before you submit PR:
@go-playground/validator-maintainers
coverage: 74.316% (+0.03%) from 74.291% when pulling e022a958d923ef3247d15e89addbbd2360341ba3 on rtomadpg:feat-add-ipv4port into a947377040f8ebaee09f20d09a745ec369396793 on go-playground:master.
Fixes Or Enhances
Here is a little PR to say thank you, for providing your framework.
Let's add a validator for IPv4 bind addresses.
Examples of valid input:
:9000
for port 9000 on any IP address1.2.3.4:7777
for port 7777 on specific IP addressMy use case: I need this validator for an application's config including IP based socket listener addresses, like:
:9999
or127.0.0.1:9999
Make sure that you've checked the boxes below before you submit PR:
@go-playground/validator-maintainers