Skip to content

Files

Latest commit

3b00f4a · Jan 24, 2023

History

History

emptiness

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 24, 2023
Jan 24, 2023

Emptiness

A library with zero detection helpers.

Usage

package main

import "gitlab.com/metricsglobal/misc-go/emptiness"

var _ emptiness.IsZeroer = Dataset{}

type Dataset struct {
	Field1 string
	Field2 uint
}

func (d Dataset) IsZero() bool {
	return emptiness.IsZero(d)
}