convert

package
v0.0.0-...-2d73068 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 0 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DummyEqualer

type DummyEqualer struct {
}

DummyEqualer implements the Equaler interface and can be used by tests. Other than that it has not meaning.

func (DummyEqualer) Equal

func (d DummyEqualer) Equal(u Equaler) bool

Equal returns true if the argument is also an DummyEqualer; otherwise false is returned.

type Equaler

type Equaler interface {
	// Returns true if the Equaler object is the same as this object; otherwise false is returned.
	// You need to convert the Equaler object using type assertions: https://golang.org/ref/spec#Type_assertions
	Equal(Equaler) bool
}

The Equaler interface allows object that implement it, to be compared

Jump to

Keyboard shortcuts

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