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

Function ObjectString

types/object.go:567–571  ·  view source on GitHub ↗

ObjectString returns the string form of obj. The Qualifier controls the printing of package-level objects, and may be nil.

(obj Object, qf Qualifier)

Source from the content-addressed store, hash-verified

565// The Qualifier controls the printing of
566// package-level objects, and may be nil.
567func ObjectString(obj Object, qf Qualifier) string {
568 var buf bytes.Buffer
569 writeObject(&buf, obj, qf)
570 return buf.String()
571}
572
573func (obj *PkgName) String() string { return ObjectString(obj, nil) }
574func (obj *Const) String() string { return ObjectString(obj, nil) }

Callers 14

ExampleInfoFunction · 0.92
TestImportedTypesFunction · 0.92
TestStdlibFunction · 0.92
TestMethodInstantiationFunction · 0.85
TestImmutableSignaturesFunction · 0.85
StringMethod · 0.85
StringMethod · 0.85
StringMethod · 0.85
StringMethod · 0.85
StringMethod · 0.85
StringMethod · 0.85
StringMethod · 0.85

Calls 2

StringMethod · 0.95
writeObjectFunction · 0.85

Tested by 5

ExampleInfoFunction · 0.74
TestImportedTypesFunction · 0.74
TestStdlibFunction · 0.74
TestMethodInstantiationFunction · 0.68
TestImmutableSignaturesFunction · 0.68