The Central Go Modules Repository

To use GoCenter:
export GOPROXY=https://gocenter.io
0
Stars
BSD-3-Clause
License
6
Downloads
September 25th 2017
Last Modified
Version:
Loading...

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.