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

Function toString

ssa/interp/value.go:463–467  ·  view source on GitHub ↗

Implements printing of Go values in the style of built-in println.

(v value)

Source from the content-addressed store, hash-verified

461
462// Implements printing of Go values in the style of built-in println.
463func toString(v value) string {
464 var b bytes.Buffer
465 writeValue(&b, v)
466 return b.String()
467}
468
469// ------------------------------------------------------------------------
470// Iterators

Callers 5

InterpretFunction · 0.85
ext۰fmt۰SprintFunction · 0.85
StringMethod · 0.85
callBuiltinFunction · 0.85

Calls 2

StringMethod · 0.95
writeValueFunction · 0.85

Tested by

no test coverage detected