Skip to content

Commit a1ac82a

Browse files
author
Ravi Terala
committed
Add documentation
1 parent 893747e commit a1ac82a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

doc.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,6 +1037,13 @@ This is done using os.Stat, which is a platform independent function.
10371037
10381038
Usage: dir
10391039
1040+
HostPort
1041+
1042+
This validates that a string value contains a valid DNS hostname and port that
1043+
can be used to valiate fields typically passed to sockets and connections.
1044+
1045+
Usage: hostname_port
1046+
10401047
Alias Validators and Tags
10411048
10421049
NOTE: When returning an error, the tag returned in "FieldError" will be

0 commit comments

Comments
 (0)