Latest Threat ResearchGlassWorm Loader Hits Open VSX via Developer Account Compromise.Details
Socket
Book a DemoInstallSign in
Socket

vimagination.zapto.org/equaler

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vimagination.zapto.org/equaler

Go Modules
Version
v1.0.0
Version published
Created
Source

equaler

-- import "github.com/MJKWoolnough/equaler"

Package equaler gives a simple interface to compare objects of arbitrary types.

Usage

type Equaler

type Equaler interface {
	Equal(interface{}) bool
}

Equaler is a simple interface that is used to determing the equality of two variables

var (
	// EFalse represents an Equaler that never matches, even against itself
	EFalse Equaler = eFalse{}
	// EThis represents an Equaler that only and always matches itself
	EThis Equaler = eThis{}
)

FAQs

Package last updated on 22 Jul 2021

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