@@ -100,7 +100,7 @@ Baked-in Validations
100100| hostname_rfc1123 | Hostname RFC 1123 |
101101| ip | Internet Protocol Address IP |
102102| ip4_addr | Internet Protocol Address IPv4 |
103- | ip6_addr | Internet Protocol Address IPv6 |
103+ | ip6_addr | Internet Protocol Address IPv6 |
104104| ip_addr | Internet Protocol Address IP |
105105| ipv4 | Internet Protocol Address IPv4 |
106106| ipv6 | Internet Protocol Address IPv6 |
@@ -129,12 +129,17 @@ Baked-in Validations
129129| contains | Contains |
130130| containsany | Contains Any |
131131| containsrune | Contains Rune |
132+ | endsnotwith | Ends With |
132133| endswith | Ends With |
134+ | excludes | Excludes |
135+ | excludesall | Excludes All |
136+ | excludesrune | Excludes Rune |
133137| lowercase | Lowercase |
134138| multibyte | Multi-Byte Characters |
135139| number | NOT DOCUMENTED IN doc.go |
136140| numeric | Numeric |
137141| printascii | Printable ASCII |
142+ | startsnotwith | Starts Not With |
138143| startswith | Starts With |
139144| uppercase | Uppercase |
140145
@@ -143,6 +148,8 @@ Baked-in Validations
143148| - | - |
144149| base64 | Base64 String |
145150| base64url | Base64URL String |
151+ | bic | Business Identifier Code (ISO 9362) |
152+ | bcp47_language_tag | Language tag (BCP 47) |
146153| btc_addr | Bitcoin Address |
147154| btc_addr_bech32 | Bitcoin Bech32 Address (segwit) |
148155| datetime | Datetime |
@@ -158,13 +165,20 @@ Baked-in Validations
158165| isbn | International Standard Book Number |
159166| isbn10 | International Standard Book Number 10 |
160167| isbn13 | International Standard Book Number 13 |
168+ | iso3166_1_alpha2 | Two-letter country code (ISO 3166-1 alpha-2) |
169+ | iso3166_1_alpha3 | Three-letter country code (ISO 3166-1 alpha-3) |
170+ | iso3166_1_alpha_numeric | Numeric country code (ISO 3166-1 numeric) |
171+ | iso3166_2 | Country subdivision code (ISO 3166-2) |
161172| json | JSON |
162173| jwt | JSON Web Token (JWT) |
163174| latitude | Latitude |
164175| longitude | Longitude |
176+ | postcode_iso3166_alpha2 | Postcode |
177+ | postcode_iso3166_alpha2_field | Postcode |
165178| rgb | RGB String |
166179| rgba | RGBA String |
167180| ssn | Social Security Number SSN |
181+ | timezone | Timezone |
168182| uuid | Universally Unique Identifier UUID |
169183| uuid3 | Universally Unique Identifier UUID v3 |
170184| uuid3_rfc4122 | Universally Unique Identifier UUID v3 RFC4122 |
@@ -179,7 +193,7 @@ Baked-in Validations
179193| - | - |
180194| eq | Equals |
181195| gt | Greater than|
182- | gte | Greater than or equal |
196+ | gte | Greater than or equal |
183197| lt | Less Than |
184198| lte | Less Than or Equal |
185199| ne | Not Equal |
@@ -188,10 +202,6 @@ Baked-in Validations
188202| Tag | Description |
189203| - | - |
190204| dir | Directory |
191- | endswith | Ends With |
192- | excludes | Excludes |
193- | excludesall | Excludes All |
194- | excludesrune | Excludes Rune |
195205| file | File path |
196206| isdefault | Is Default |
197207| len | Length |
@@ -211,6 +221,12 @@ Baked-in Validations
211221| excluded_without_all | Excluded Without All |
212222| unique | Unique |
213223
224+ #### Aliases:
225+ | Tag | Description |
226+ | - | - |
227+ | iscolor | hexcolor\| rgb\| rgba\| hsl\| hsla |
228+ | country_code | iso3166_1_alpha2\| iso3166_1_alpha3\| iso3166_1_alpha_numeric |
229+
214230Benchmarks
215231------
216232###### Run on MacBook Pro (15-inch, 2017) go version go1.10.2 darwin/amd64
0 commit comments