emptiness

package
v0.7.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 1 Imported by: 0

README

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)
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsZero

func IsZero(a interface{}) bool

Types

type IsZeroer

type IsZeroer interface {
	IsZero() bool
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL