MCPcopy Create free account
hub / github.com/despiteallobjections/amigo / NewPointer

Function NewPointer

types/pointer.go:13–13  ·  view source on GitHub ↗

NewPointer returns a new pointer type for the given element (base) type.

(elem Type)

Source from the content-addressed store, hash-verified

11
12// NewPointer returns a new pointer type for the given element (base) type.
13func NewPointer(elem Type) *Pointer { return &Pointer{base: elem} }
14
15// Elem returns the element type for the given pointer p.
16func (p *Pointer) Elem() Type { return p.base }

Callers 15

ext۰reflect۰NewFunction · 0.92
TestMethodInstantiationFunction · 0.85
lookupNamedMethod · 0.85
TestQualifiedTypeStringFunction · 0.85
spillParamMethod · 0.85
lookupMethod · 0.85
TestConvertibleToFunction · 0.85
TestImplementsFunction · 0.85
addLocalMethod · 0.85
needMethodsMethod · 0.85
missingMethodMethod · 0.85
instantiateMethodMethod · 0.85

Calls

no outgoing calls

Tested by 5

TestMethodInstantiationFunction · 0.68
TestQualifiedTypeStringFunction · 0.68
TestConvertibleToFunction · 0.68
TestImplementsFunction · 0.68
checkVarValueFunction · 0.68