From a1ac82a8653a8e36245594d0599a9412f9574ae3 Mon Sep 17 00:00:00 2001 From: Ravi Terala Date: Fri, 17 Jan 2020 09:52:57 -0800 Subject: [PATCH] Add documentation --- doc.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/doc.go b/doc.go index 799882c..4c58d95 100644 --- a/doc.go +++ b/doc.go @@ -1037,6 +1037,13 @@ This is done using os.Stat, which is a platform independent function. Usage: dir +HostPort + +This validates that a string value contains a valid DNS hostname and port that +can be used to valiate fields typically passed to sockets and connections. + + Usage: hostname_port + Alias Validators and Tags NOTE: When returning an error, the tag returned in "FieldError" will be