joeybloggs
e42d7b683a
determined variable values to be passed
...
for #74
9 years ago
joeybloggs
c62550c414
Investigating difference speed architectures
...
investigation if goroutines in a consumer producer pattern vs passing a map
Spoiler: the map wins out big time!
9 years ago
joeybloggs
9d2b8ee9d4
updated coverage tests to be 100%
9 years ago
joeybloggs
e1fd32247f
Fix interface issue when value is set but no validation tag exists
9 years ago
joeybloggs
89a5909004
add test to ensure 100% of the lines of code are called, even in the pool
9 years ago
joeybloggs
f604b6cc96
Complete Flatten logic
...
for #88
9 years ago
joeybloggs
4d57165562
fix wrong variable used in checking for "[" char
...
for #85
9 years ago
joeybloggs
7d55bfddde
complete flatten logic for array elements
...
for #85
9 years ago
joeybloggs
c7ff296dca
correct interface issue
...
add handling of interface validation by determining it's type
for issue #85
9 years ago
joeybloggs
200a5b4aad
finish map error handling & complete test coverage
...
for #78
9 years ago
joeybloggs
8bf793acde
correct map references pointing to slice after copy/paste
...
for#78
9 years ago
joeybloggs
14f176e8ac
add traverseMap
...
for #78
9 years ago
joeybloggs
98f4165fae
added time test
...
fix issue with time.Time data type validation
9 years ago
joeybloggs
a0f6d14ada
add more tests
...
correct pointer issue is traverseArray
for #78
9 years ago
joeybloggs
689d3e9989
finalized array error handling
...
for #78
9 years ago
joeybloggs
6eded1f817
correct error output and index out of order error
...
for #78
9 years ago
joeybloggs
d019d02290
Add some initial validation
...
change slice errors variable type to map[int]error to allow tracking of index of the error i the array
for #78
9 years ago
joeybloggs
4afdc19aef
Finish initial array traversal logic
...
for #78
9 years ago
joeybloggs
e0e86490bf
Fix Issue with nested struct as pointer being nil
...
for #79
10 years ago
joeybloggs
63a3b7e6ad
add multibyte test case for blank string to maintain 100% test coverage
10 years ago
joeybloggs
35aff710e4
added many new validator + tests + documentation:
...
ascii
printascii
multibyte
datauri
latitude
longitude
ssn
10 years ago
joeybloggs
7aa70841bc
add uuid, uuid3, uuid4 and uuid5 validators + tests + documentation
10 years ago
joeybloggs
20d9b7909f
add isbn, isbn10 and isbn validators + tests + documentation
10 years ago
joeybloggs
5db5165e2c
update rub and reba regex
...
rejects now properly test for RGB 255 and RGB using percentages, before it allowed mixing of percentages or numbers between 0-255 but it's either or now.
10 years ago
joeybloggs
9ff11ae808
break out benchmarks into separate file
...
create examples file for better godocs
10 years ago
joeybloggs
f4837a073b
add call to SetMaxStructPoolSize in test to ensure continued 100% test coverage
10 years ago
joeybloggs
0fbc3228e8
rework code to allow handling of comma (,) and = within the params i.e. excludesall=,=
...
add test cases for comma and = validation within params
add documentation stating how to include a comma within the parameters
for #67
10 years ago
joeybloggs
793099be40
remove trimming of param option as space could be a valid param option or char
...
for #63
10 years ago
joeybloggs
1fda4930f6
comment out parallel benchmarks to maintain go 1.2 compatibility
10 years ago
joeybloggs
56b4ce1811
add larger tests for benchmarks
10 years ago
joeybloggs
81ce302975
add parallel benchmark
10 years ago
joeybloggs
22d031deb0
add struct caching, significant speedup even in a simple test
...
NOTE: validating a single fields speed however was reduced and more memory allocations, need to correct this before marking caching as complete.
10 years ago
joeybloggs
fbb3befecb
update validate struct benchmark for lager struct with nested struct
10 years ago
joeybloggs
beaa9adf31
minor performance updates
...
add benchmarks
10 years ago
joeybloggs
e5c73961c7
finish test conversion
10 years ago
joeybloggs
ae2d0646af
add more checks to IsEqual function
10 years ago
joeybloggs
e0b68a7520
initial commit of helper functions
10 years ago
joeybloggs
3dcc019b64
add contains, contains any, contains rune, excludes, excludes and excludesrune validation functions + tests + docuemtation
...
for #43
10 years ago
joeybloggs
23c3fa6b63
add ne and nefield functions to validator
10 years ago
joeybloggs
b891b1cf3c
add eq baked in function + tests
...
add eqfield baked in function + tests
for issue #35
10 years ago
Dean Karn
e530eb5470
add documentation for new base64 validator
10 years ago
Dean Karn
1d008b4ad2
add base64 validate as requested in issue #30
10 years ago
Dean Karn
829b13775f
Update validator_test.go
10 years ago
Dean Karn
d474ce1ce6
update test import path
10 years ago
Dean Karn
7ac98be692
changes in preparation for package rename to validator
...
update code for more idiomatic code
10 years ago
Dean Karn
a660c007dc
update for new organization
...
update README, links and documentation for new organization
10 years ago
Dean Karn
1e1442d02c
merge changes from Pull Request #24 from @manucorporat
10 years ago
Dean Karn
a3cb430fa1
issue-#20
...
add extra param of current struct.
10 years ago
Dean Karn
622107d990
issue-#18
...
add “structonly” tag for struct only and not field validation
10 years ago
Dean Karn
cfea08f69d
issue-#14
...
remove internal validator.
10 years ago