I want to check the URL address for validity, but url.Parse() does not give any errors, etc., the URL itself. The address looks like http://validate/ , it is not a valid URL at all, but not url.Parse() , not govalidator.IsURL() does not give anything suspicious and no error, in the end I have an invalid URL address .. What are the correct and valid methods to validate the http/https url address?
|
/etc/hostsor in a local DNS may well have such a host. - Ainar-G