joeybloggs
210684a828
code cleanup + add missing tag cache with FieldWith func
...
Still looking good:
```
benchmark old ns/op new ns/op delta
BenchmarkFieldSuccess-4 167 119 -28.74%
BenchmarkFieldFailure-4 701 650 -7.28%
BenchmarkFieldDiveSuccess-4 2937 2482 -15.49%
BenchmarkFieldDiveFailure-4 3536 3046 -13.86%
BenchmarkFieldCustomTypeSuccess-4 341 296 -13.20%
BenchmarkFieldCustomTypeFailure-4 679 666 -1.91%
BenchmarkFieldOrTagSuccess-4 1157 1124 -2.85%
BenchmarkFieldOrTagFailure-4 1109 1036 -6.58%
BenchmarkStructLevelValidationSuccess-4 694 554 -20.17%
BenchmarkStructLevelValidationFailure-4 1311 558 -57.44%
BenchmarkStructSimpleCustomTypeSuccess-4 894 654 -26.85%
BenchmarkStructSimpleCustomTypeFailure-4 1496 1286 -14.04%
BenchmarkStructPartialSuccess-4 1229 1062 -13.59%
BenchmarkStructPartialFailure-4 1838 1639 -10.83%
BenchmarkStructExceptSuccess-4 961 919 -4.37%
BenchmarkStructExceptFailure-4 1218 1072 -11.99%
BenchmarkStructSimpleCrossFieldSuccess-4 954 800 -16.14%
BenchmarkStructSimpleCrossFieldFailure-4 1569 1372 -12.56%
BenchmarkStructSimpleCrossStructCrossFieldSuccess-4 1588 1274 -19.77%
BenchmarkStructSimpleCrossStructCrossFieldFailure-4 2217 1901 -14.25%
BenchmarkStructSimpleSuccess-4 925 512 -44.65%
BenchmarkStructSimpleFailure-4 1650 1318 -20.12%
BenchmarkStructSimpleSuccessParallel-4 261 144 -44.83%
BenchmarkStructSimpleFailureParallel-4 758 581 -23.35%
BenchmarkStructComplexSuccess-4 5868 3451 -41.19%
BenchmarkStructComplexFailure-4 10767 8351 -22.44%
BenchmarkStructComplexSuccessParallel-4 1559 1065 -31.69%
BenchmarkStructComplexFailureParallel-4 3747 2916 -22.18%
```
8 years ago
joeybloggs
c0a414dc9e
initial un-refined new caching system
8 years ago
joeybloggs
5c8ad6a1a9
only check struct validity once
8 years ago
joeybloggs
cdfcf16a86
fix some minor listing.
8 years ago
Dean Karn
25f1823069
Merge pull request #243 from kenkouot/patch-1
...
Fix typo: ne is validation key for not equal
8 years ago
Kenneth Kouot
719d0b12ee
Fix another typo: eq to ne
8 years ago
Kenneth Kouot
3499e730cb
Fix typo: ne is validation key for not equal
8 years ago
joeybloggs
014792cf3e
Update README version
9 years ago
joeybloggs
e7749ea250
Update validations for "url" and "uri" because of Go 1.6 changes
...
added checks for blank and fragment/suffix because of Go 1.6 change 617c93ce74 (diff-6c2d018290e298803c0c9419d8739885L195)
fix was to emulate browser and strip the '#' suffix prior to validation. see #237
9 years ago
joeybloggs
93bb347253
Update validations for "url" and "uri" because of Go 1.6 changes
...
added checks for blank and fragment/suffix because of Go 1.6 change 617c93ce74 (diff-6c2d018290e298803c0c9419d8739885L195)
fix was to emulate browser and strip the '#' suffix prior to validation. see #237
9 years ago
Dean Karn
1214d3629c
Update README.md
9 years ago
Dean Karn
bd356b6899
Merge pull request #235 from moogle19/master
...
Add unicode email tests
9 years ago
Kevin Seidel
851787be1b
Add unicode email tests
9 years ago
joeybloggs
f38559b489
Update checking unexpected fields for Go 1.6 https://tip.golang.org/doc/go1.6#reflect
...
* I have not run into the issue yet, but being preemptive
9 years ago
Dean Karn
4c79e69823
Merge pull request #234 from go-playground/krhubert
...
Add validation functions for tcp/udp/ip/unix addresses
9 years ago
joeybloggs
bf5ac690d6
Add a couple more test cases
9 years ago
joeybloggs
6851add4e4
Update to avoid double resolves
9 years ago
joeybloggs
4cb9152af0
correct IsUPDAddrResolvable functions
9 years ago
joeybloggs
faf40fd62f
Correct validation for TCPAddrResolvable
9 years ago
Dean Karn
73aaa89512
Update README.md
9 years ago
joeybloggs
7b758151c6
Add workaround for go issue
9 years ago
Hubert Krauze
3eaf857419
Add docs tcp/udp/ip/unix addresses resolve
9 years ago
Hubert Krauze
ee0ce7d37e
Add test for tcp/udp/ip/unix addresses resolve
9 years ago
Hubert Krauze
312ba49f28
Remove duplicated "Usage: mac" from docs
9 years ago
Hubert Krauze
def24ae611
Add Resolvable suffix to functions so they can be more meaningful
9 years ago
Hubert Krauze
5a99cf6052
Add validation functions for tcp/udp/ip/unix addresses
9 years ago
joeybloggs
c193cecd12
Merge branch 'complimentary-software-section' into v8
9 years ago
joeybloggs
64b7e2bb79
correct CI links
9 years ago
joeybloggs
50ada8d03a
Add Complimentary software section README
9 years ago
Dean Karn
d370e28d44
Merge pull request #232 from aarongreenlee/v8
...
Revisions to GoDoc
9 years ago
Aaron Greenlee
0b51ee1e8e
Removed duplicate punctuation.
9 years ago
Aaron Greenlee
71d9b9e91c
Some grammer corrections; Formatting of GoDoc
9 years ago
Aaron Greenlee
24ea3a17b5
Minor typo corrected in doc.go
9 years ago
Dean Karn
e8d470cd7a
Merge pull request #229 from go-playground/v8-development
...
Add FieldNamespace and NameNamespace + string comparison optimizations
9 years ago
Dean Karn
b737e38edb
Merge pull request #228 from joeybloggs/v8-development
...
Add FieldNamespace and NameNamespace + string comparison optimizations
9 years ago
joeybloggs
0862513fbf
Add some string check optimizations
...
* was using len(string) for some blank checks instead of string == ""
9 years ago
joeybloggs
0b533f264c
Only set namespace prefix when using FieldNameTag
9 years ago
joeybloggs
afbcf59553
Add FieldNamespace and NameNamespace
...
* Add FieldNamespace and NameNamespace to FieldError. This allows for having the CustomName i.e. JSON namespace contained within the NameNamespace which would be very useful when using a more restful API approach.
9 years ago
Dean Karn
bc50625289
Merge pull request #222 from go-playground/v8-development
...
Add validator logo
9 years ago
Dean Karn
e7cce24a67
Merge pull request #221 from muyiwaolurin/v8-development
...
Test Logo
9 years ago
Anthony Olurin
c4d5999ec0
Added logo to ReadMe
9 years ago
Dean Karn
43f534e655
Merge pull request #220 from go-playground/v8-development
...
Add new Anonymous test to hit new code
9 years ago
Dean Karn
8040a52f21
Merge pull request #219 from joeybloggs/v8-development
...
Add new Anonymous test to hit new code
9 years ago
joeybloggs
934bef0ce5
Add new Anonymous test to hit new code
...
* now have 100% test coverage again.
9 years ago
Dean Karn
0794474f60
Merge pull request #218 from go-playground/v8-development
...
Add struct field + associated tags caching
9 years ago
Dean Karn
589c2ad113
Merge pull request #217 from joeybloggs/v8-development
...
Add struct field + associated tags caching
9 years ago
joeybloggs
e019c28542
Add struct field + associated tags caching
...
* This essentially reduces the number of cache tag lookups for a structs fields to one.
9 years ago
joeybloggs
94182a2199
init struct cache changes
9 years ago
Dean Karn
638ea8a3f8
Merge pull request #216 from go-playground/v8-development
...
Micro optimization in Tag Cache
9 years ago
Dean Karn
d5987d5437
Merge pull request #215 from joeybloggs/v8-development
...
Micro optimization in Tag Cache
9 years ago