Skip to content

utahta/go-validator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-validator

GoDoc Reference CircleCI codecov Go Report Card GitHub release

go-validator is a data validation library for Go.

Installation

go get -u github.com/utahta/go-validator

Benchmarks

3.2 GHz Intel Core i7, 64 GB 2667 MHz DDR4

goos: darwin
goarch: amd64
pkg: github.com/utahta/go-validator
BenchmarkValidateVarSuccess-12                          30000000                58.0 ns/op             0 B/op          0 allocs/op
BenchmarkValidateVarParallelSuccess-12                  100000000               12.3 ns/op             0 B/op          0 allocs/op
BenchmarkValidateStructSuccess-12                       10000000               184 ns/op               0 B/op          0 allocs/op
BenchmarkValidateStructParallelSuccess-12               50000000                37.1 ns/op             0 B/op          0 allocs/op
BenchmarkValidateStructComplexSuccess-12                 1000000              1112 ns/op              32 B/op          3 allocs/op
BenchmarkValidateStructComplexParallelSuccess-12        10000000               222 ns/op              32 B/op          3 allocs/op
BenchmarkValidateVarFailure-12                          10000000               187 ns/op             224 B/op          3 allocs/op
BenchmarkValidateStructComplexFailure-12                  500000              3740 ns/op            3760 B/op         60 allocs/op
BenchmarkValidateStructComplexParallelFailure-12         1000000              1117 ns/op            3760 B/op         60 allocs/op