reflect

package
v0.0.0-...-3098c48 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package reflect contains reflection tools.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeepDerivative

func DeepDerivative(a interface{}, b interface{}) bool

DeepDerivative is similar to DeepEqual except that unset fields in a1 are ignored (not compared). This allows us to focus on the fields that matter to the semantic comparison.

The unset fields include a nil pointer and an empty string. No equality functions are used.

func DeepEqual

func DeepEqual(a interface{}, b interface{}) bool

DeepEqual performs reflect.DeepEqual without equality functions defined.

Types

type Equalities

type Equalities struct {
	reflect.Equalities
}

Equalities is a wrapper around Equalities. The functionality comes from Kubernetes which itself forks from the official go std library.

func EqualitiesOrDie

func EqualitiesOrDie(funcs ...interface{}) Equalities

EqualitiesOrDie panics on errors for convience.

Jump to

Keyboard shortcuts

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