MCPcopy
hub / github.com/expr-lang/expr / String

Method String

types/types.go:140–146  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138}
139
140func (m Map) String() string {
141 pairs := make([]string, 0, len(m))
142 for k, v := range m {
143 pairs = append(pairs, fmt.Sprintf("%s: %s", k, v.String()))
144 }
145 return fmt.Sprintf("Map{%s}", strings.Join(pairs, ", "))
146}
147
148// Array returns a type that represents an array of the given type.
149func Array(of Type) Type {

Callers

nothing calls this directly

Calls 2

SprintfMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected