Added
netutil.IsValidHostnamefunction that repeats the behavior ofnetutil.ValidateHostname, but allocates less.netutil.IsValidHostnameLabelfunction that repeats the behavior ofnetutil.ValidateHostnameLabel, but doesn't allocate.netutil.IsValidIPStringfunction.