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
Dean Karn
edb25ac80e
issue-#13
...
add generic cross field validation for Number and time.Time data types
10 years ago
Dean Karn
c0c54e6ddf
issue-#12
...
add return of variable Type as well as Kind
10 years ago
Dean Karn
e882184fe2
issue-#11
...
update gt, gte, lt and let to handle dates compared to time.Now().UTC()
10 years ago
Dean Karn
191b1ce01f
v2 add cross field validation ability
10 years ago
Dean Karn
46e519deac
issue-#8
...
update to provide 100% test coverage
10 years ago
Dean Karn
ac82433503
Update to return FieldValidationError for single field validation
...
update to return FieldValidationError for single field validation
add Kind, Param and Value to the FieldValidationError struct to allow
for a more automated error handling api outside of this library.
10 years ago
Dean Karn
4e4a2a2b8e
issue-#1
...
add url validation and test cases
add uri validation and test cases
10 years ago
Dean Karn
2073d33609
issue-#1
...
add lt validation function + test code
add lte validation function + test code
add gt validation function + test code
add get validation function + test code
10 years ago
Dean Karn
cbf8124403
issue-#7
...
add ‘or’ operator to allow multiple validators to be used instead of
just the implicit ‘and’
10 years ago
Dean Karn
beb87b1d05
issue-#1
...
add rgb color validation function + Test Code
add rgba color validation function + Test Code
add hsl color validation function + Test Code
add hula color validation function + Test Code
10 years ago
Dean Karn
dfe8a4e7fa
issue-#1
...
add numeric validation function + Test Cases
add number validation function + Test Cases
add hexadecimal validation function + Test Cases
add hexcolor validation function + Test Cases
add email validation function + Test Cases
10 years ago
Dean Karn
e8eadfc326
issue-#1
...
add alpha validation function + Test code
add alphanumeric validation function + Test code
10 years ago
Dean Karn
2334f777b8
issue-#6
...
add interface support + Test
10 years ago
Dean Karn
399fda949a
issue-#5
...
add Flatten function
add Test case for Flatten() function
10 years ago
Dean Karn
b2f3d55b2c
issue-#3
...
add tests for existing functions.
10 years ago
Dean Karn
fe79700b95
issue-#3
...
unintended error redesign to heierarchical
10 years ago
Dean Karn
207b714da8
issue-#2
...
add Error interfaces to error structs
add const variable to production string variables.
10 years ago
Dean Karn
05d2507495
add omit empty check
...
allow for optional value checking
10 years ago
Dean Karn
aad5727a16
initial working commit
10 years ago
Dean Karn
83c9883fe8
add gopkg
10 years ago
Dean Karn
c0ff4f7f60
initial code
...
checkin so that can integrate with http://gopkg.in/
10 years ago