1
0
Fork 0
Helper/workaround for interface nil checks in Go with benchmarks
Go to file
Gregory Eremin 635255152a Initial commit 2017-07-25 17:50:44 +04:00
README.md Initial commit 2017-07-25 17:50:44 +04:00
isnil.go Initial commit 2017-07-25 17:50:44 +04:00
isnil_test.go Initial commit 2017-07-25 17:50:44 +04:00

README.md

Checking for nil in Go

Benchmarks:

BenchmarkIsNilBasic-8           200000000            9.47 ns/op
BenchmarkIsNilInterface-8       200000000            9.18 ns/op
BenchmarkIsNilNil-8             1000000000           2.03 ns/op