utils

package
v0.0.0-...-8a9fb8e Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package utils expose utility functions.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrorComparator is a google/go-cmp comparator of errors
	ErrorComparator = cmp.Comparer(func(x, y error) bool {
		return (x == nil && y == nil) || (x != nil && y != nil && x.Error() == y.Error())
	})
)

Functions

func BoolPointer

func BoolPointer(value bool) *bool

BoolPointer give a fixed pointer to a corresponding bool value. e.g. true as value will always have the same pointer

Types

This section is empty.

Jump to

Keyboard shortcuts

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