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

Method String

edge.go:60–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58}
59
60func (e Edge) String() string {
61 if len(e.Properties) == 0 {
62 return "{}"
63 }
64
65 p := make([]string, 0, len(e.Properties))
66 for k, v := range e.Properties {
67 p = append(p, fmt.Sprintf("%s:%v", k, ToString(v)))
68 }
69
70 s := fmt.Sprintf("{%s}", strings.Join(p, ","))
71 return s
72}
73
74func (e Edge) Encode() string {
75 s := []string{"(", e.Source.Alias, ")"}

Callers

nothing calls this directly

Calls 1

ToStringFunction · 0.85

Tested by

no test coverage detected