@@ -100,7 +100,7 @@ Baked-in Validations
100
100
| hostname_rfc1123 | Hostname RFC 1123 |
101
101
| ip | Internet Protocol Address IP |
102
102
| ip4_addr | Internet Protocol Address IPv4 |
103
- | ip6_addr | Internet Protocol Address IPv6 |
103
+ | ip6_addr | Internet Protocol Address IPv6 |
104
104
| ip_addr | Internet Protocol Address IP |
105
105
| ipv4 | Internet Protocol Address IPv4 |
106
106
| ipv6 | Internet Protocol Address IPv6 |
@@ -129,12 +129,17 @@ Baked-in Validations
129
129
| contains | Contains |
130
130
| containsany | Contains Any |
131
131
| containsrune | Contains Rune |
132
+ | endsnotwith | Ends With |
132
133
| endswith | Ends With |
134
+ | excludes | Excludes |
135
+ | excludesall | Excludes All |
136
+ | excludesrune | Excludes Rune |
133
137
| lowercase | Lowercase |
134
138
| multibyte | Multi-Byte Characters |
135
139
| number | NOT DOCUMENTED IN doc.go |
136
140
| numeric | Numeric |
137
141
| printascii | Printable ASCII |
142
+ | startsnotwith | Starts Not With |
138
143
| startswith | Starts With |
139
144
| uppercase | Uppercase |
140
145
@@ -143,6 +148,8 @@ Baked-in Validations
143
148
| - | - |
144
149
| base64 | Base64 String |
145
150
| base64url | Base64URL String |
151
+ | bic | Business Identifier Code (ISO 9362) |
152
+ | bcp47_language_tag | Language tag (BCP 47) |
146
153
| btc_addr | Bitcoin Address |
147
154
| btc_addr_bech32 | Bitcoin Bech32 Address (segwit) |
148
155
| datetime | Datetime |
@@ -158,13 +165,20 @@ Baked-in Validations
158
165
| isbn | International Standard Book Number |
159
166
| isbn10 | International Standard Book Number 10 |
160
167
| 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) |
161
172
| json | JSON |
162
173
| jwt | JSON Web Token (JWT) |
163
174
| latitude | Latitude |
164
175
| longitude | Longitude |
176
+ | postcode_iso3166_alpha2 | Postcode |
177
+ | postcode_iso3166_alpha2_field | Postcode |
165
178
| rgb | RGB String |
166
179
| rgba | RGBA String |
167
180
| ssn | Social Security Number SSN |
181
+ | timezone | Timezone |
168
182
| uuid | Universally Unique Identifier UUID |
169
183
| uuid3 | Universally Unique Identifier UUID v3 |
170
184
| uuid3_rfc4122 | Universally Unique Identifier UUID v3 RFC4122 |
@@ -179,7 +193,7 @@ Baked-in Validations
179
193
| - | - |
180
194
| eq | Equals |
181
195
| gt | Greater than|
182
- | gte | Greater than or equal |
196
+ | gte | Greater than or equal |
183
197
| lt | Less Than |
184
198
| lte | Less Than or Equal |
185
199
| ne | Not Equal |
@@ -188,10 +202,6 @@ Baked-in Validations
188
202
| Tag | Description |
189
203
| - | - |
190
204
| dir | Directory |
191
- | endswith | Ends With |
192
- | excludes | Excludes |
193
- | excludesall | Excludes All |
194
- | excludesrune | Excludes Rune |
195
205
| file | File path |
196
206
| isdefault | Is Default |
197
207
| len | Length |
@@ -211,6 +221,12 @@ Baked-in Validations
211
221
| excluded_without_all | Excluded Without All |
212
222
| unique | Unique |
213
223
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
+
214
230
Benchmarks
215
231
------
216
232
###### Run on MacBook Pro (15-inch, 2017) go version go1.10.2 darwin/amd64
0 commit comments