package value
Import Path
github.com/google/go-cmp/cmp/internal/value (on go.dev)
Dependency Relation
imports 6 packages, and imported by one package
Package-Level Type Names (only one, which is exported)
Pointer is an opaque typed pointer and is guaranteed to be comparable.
p unsafe.Pointer
t reflect.Type
IsNil reports whether the pointer is nil.
Uintptr returns the pointer as a uintptr.
func PointerOf(v reflect.Value) Pointer
func github.com/google/go-cmp/cmp.formatPointer(p Pointer, withDelims bool) string
func github.com/google/go-cmp/cmp.makeLeafReference(p Pointer, printAddress bool) cmp.textNode
func github.com/google/go-cmp/cmp.wrapTrunkReference(p Pointer, printAddress bool, s cmp.textNode) cmp.textNode
func github.com/google/go-cmp/cmp.wrapTrunkReferences(pp [2]Pointer, s cmp.textNode) cmp.textNode
Package-Level Functions (total 6, in which 4 are exported)
IsZero reports whether v is the zero value.
This does not rely on Interface and so can be used on unexported fields.
PointerOf returns a Pointer from v, which must be a
reflect.Ptr, reflect.Slice, or reflect.Map.
SortKeys sorts a list of map keys, deduplicating keys if necessary.
The type of each value must be comparable.
TypeString is nearly identical to reflect.Type.String,
but has an additional option to specify that full type names be used.
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |