validator
validator copied to clipboard
feat: add validator for numeric ports
Fixes Or Enhances
This PR adds a new validation for numeric ports. Connected to: #1216
type Host struct {
Port uint32 `validate:"port"`
}
Make sure that you've checked the boxes below before you submit PR:
- [x] Tests exist or have been written that cover this particular change.
@go-playground/validator-maintainers