A go package for checking if a value is zero.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.travis.yml
LICENSE
README.md
iszero.go
iszero_benchmark_test.go
iszero_example_test.go
iszero_test.go

README.md

iszero

Go Report Card Codecov Build Status Go docs

A go package for checking if a value is zero.

I put this package together from code within the Go source, because I needed to be able to identify if a field in a struct was empty/its-zero-value, so that when encoding a struct I could determine if the field was empty and could be ommitted.

Usage

See the example in Go Docs.