equal

package
v0.0.0-...-d581519 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicEqual

func BasicEqual(e1, e2 Equaler) bool

BasicEqual reports whether e1 and e2 are the same length and contain the same bytes, nil argument is equivalent to an empty slice.

Types

type Equaler

type Equaler interface {
	// Raw returns a copy of the raw bytes of the implementation.
	Raw() ([]byte, error)
}

Equaler represents equaler interface.

func NewEqualer

func NewEqualer(blob []byte) Equaler

NewEqualer constructs Equaler interface with provided raw bytes data.

Jump to

Keyboard shortcuts

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