value

package
v0.0.0-...-d88c8b5 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsZero

func IsZero(v reflect.Value) bool

IsZero reports whether v is the zero value. This does not rely on Interface and so can be used on unexported fields.

func SortKeys

func SortKeys(vs []reflect.Value) []reflect.Value

SortKeys sorts a list of map keys, deduplicating keys if necessary. The type of each value must be comparable.

Types

type Pointer

type Pointer struct {
	// contains filtered or unexported fields
}

Pointer is an opaque typed pointer and is guaranteed to be comparable.

func PointerOf

func PointerOf(v reflect.Value) Pointer

PointerOf returns a Pointer from v, which must be a reflect.Ptr, reflect.Slice, or reflect.Map.

Jump to

Keyboard shortcuts

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