From c177f9fe893f6442a71f89a9c34537a1905161df Mon Sep 17 00:00:00 2001 From: Roberto Giachetta Date: Thu, 22 Jul 2021 17:36:05 +0200 Subject: [PATCH] Linting --- domain/func.go | 4 ++-- validate/ip.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/domain/func.go b/domain/func.go index 41bd322..b3e07cc 100644 --- a/domain/func.go +++ b/domain/func.go @@ -152,7 +152,7 @@ func Contains(first, second string) bool { return firstD.Contains(secondD) } -// Contains indicates whether this domain matches another domain or is a parent of another domain +// IsParentOf indicates whether this domain matches another domain or is a parent of another domain // // Returns false if either domain names are empty or invalid. func IsParentOf(first, second string) bool { @@ -184,7 +184,7 @@ func IsSubdomainOf(first, second string) bool { return firstD.IsSubdomainOf(secondD) } -// IsSubdomainOf indicates whether the first domain is an immediate subdomain of the second domain +// IsImmediateSubdomainOf indicates whether the first domain is an immediate subdomain of the second domain // // Returns false if either domain names are empty or invalid. func IsImmediateSubdomainOf(first, second string) bool { diff --git a/validate/ip.go b/validate/ip.go index 001a8c7..1e839b3 100644 --- a/validate/ip.go +++ b/validate/ip.go @@ -7,7 +7,7 @@ func IP(s string) error { return ip.Validate(s) } -// IP determines whether a string is a valid, non-reserved IP address +// NonReservedIP determines whether a string is a valid, non-reserved IP address func NonReservedIP(s string) error { return ip.ValidateNonReserved(s) }