Socket
Book a DemoInstallSign in
Socket

4d63.com/iszero

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

4d63.com/iszero

Go
Version
v0.0.0-20170925053114-f48f9b3a76dd
Version published
Created
Source

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.

FAQs

Package last updated on 25 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts