Skip to content
#

validation

Here are 3,905 public repositories matching this topic...

maxgalbu
maxgalbu commented Sep 20, 2021

Describe the bug
During development, I want to validate localhost as a correct URL, but to do so I need to add require_tld:false.
This forces me to make require_tld variable based on the environment, since I want to check for TLDs in production environment.

I think you should check the whitelist before checking if it's a IP or FQDN here:

https://github.com/validatorjs/validator.

renta
renta commented Mar 24, 2021

Package version eg. v9, v10:

github.com/go-playground/locales v0.13.0
github.com/go-playground/universal-translator v0.17.0
github.com/go-playground/validator/v10 v10.2.0

Issue, Question or Enhancement:

Golangci-lint (https://github.com/golangci/golangci-lint) comes with a errorlint linter (https://github.com/polyfloyd/go-errorlint). When I switched it on, I got this issue f

Improve this page

Add a description, image, and links to the validation topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the validation topic, visit your repo's landing page and select "manage topics."

Learn more