value

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: BSD-3-Clause Imports: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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.

func TypeString added in v0.5.0

func TypeString(t reflect.Type, qualified bool) string

TypeString is nearly identical to reflect.Type.String, but has an additional option to specify that full type names be used.

Types

type Pointer added in v0.3.0

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

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

func PointerOf added in v0.3.0

func PointerOf(v reflect.Value) Pointer

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

func (Pointer) IsNil added in v0.5.0

func (p Pointer) IsNil() bool

IsNil reports whether the pointer is nil.

func (Pointer) Uintptr added in v0.5.0

func (p Pointer) Uintptr() uintptr

Uintptr returns the pointer as a uintptr.

Jump to

Keyboard shortcuts

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