MCPcopy Create free account
hub / github.com/RedisGraph/redisgraph-go / String

Method String

node.go:41–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41func (n Node) String() string {
42 if len(n.Properties) == 0 {
43 return "{}"
44 }
45
46 p := make([]string, 0, len(n.Properties))
47 for k, v := range n.Properties {
48 p = append(p, fmt.Sprintf("%s:%v", k, ToString(v)))
49 }
50
51 s := fmt.Sprintf("{%s}", strings.Join(p, ","))
52 return s
53}
54
55// String makes Node satisfy the Stringer interface.
56func (n Node) Encode() string {

Callers 5

parseHeaderMethod · 0.45
parseMapMethod · 0.45
parseScalarMethod · 0.45
ExecutionPlanMethod · 0.45

Calls 1

ToStringFunction · 0.85

Tested by

no test coverage detected