package value
import "github.com/google/go-cmp/cmp/internal/value"
Index ¶
- func SortKeys(vs []reflect.Value) []reflect.Value
- func TypeString(t reflect.Type, qualified bool) string
- type Pointer
Functions ¶
func SortKeys ¶
SortKeys sorts a list of map keys, deduplicating keys if necessary. The type of each value must be comparable.
func TypeString ¶
TypeString is nearly identical to reflect.Type.String, but has an additional option to specify that full type names be used.
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 ¶
PointerOf returns a Pointer from v, which must be a reflect.Ptr, reflect.Slice, or reflect.Map.
func (Pointer) IsNil ¶
IsNil reports whether the pointer is nil.
func (Pointer) Uintptr ¶
Uintptr returns the pointer as a uintptr.
Source Files ¶
- Version
- v0.6.0 (latest)
- Published
- Aug 31, 2023
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 5 days ago –
Tools for package owners.