cmp

package
Version: v0.0.0-...-6719cd2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package cmp provides common operators on a number of scalar types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKey

func GetKey(object Key) string

GetKey returns the identity/comparison key of the object.

Types

type Key

type Key interface {
	// Key writes a serialization of the object's identity to the given
	// strings.Builder. This serialization should be optimized for machine
	// consumption. However, it should also be human-readable to make debugging
	// and unit testing easier.
	Key(*strings.Builder)
}

The Key interface is satisfied by any object whose identity can be serialized into a string.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL