MCPcopy Create free account
hub / github.com/d5/tengo / String

Method String

objects.go:1191–1197  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1189}
1190
1191func (o *Map) String() string {
1192 var pairs []string
1193 for k, v := range o.Value {
1194 pairs = append(pairs, fmt.Sprintf("%s: %s", k, v.String()))
1195 }
1196 return fmt.Sprintf("{%s}", strings.Join(pairs, ", "))
1197}
1198
1199// Copy returns a copy of the type.
1200func (o *Map) Copy() Object {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected