MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / String

Method String

internal/pgbackrest/options.go:16–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14type iniMultiSet map[string][]string
15
16func (ms iniMultiSet) String() string {
17 keys := make([]string, 0, len(ms))
18 for k := range ms {
19 keys = append(keys, k)
20 }
21
22 sort.Strings(keys)
23
24 var b strings.Builder
25 for _, k := range keys {
26 for _, v := range ms[k] {
27 if len(v) <= 0 {
28 _, _ = fmt.Fprintf(&b, "%s =\n", k)
29 } else {
30 _, _ = fmt.Fprintf(&b, "%s = %s\n", k, v)
31 }
32 }
33 }
34 return b.String()
35}
36
37// Add associates value with key, appending it to any values already associated
38// with key. The key is case-sensitive.

Callers 8

TestMultiSetFunction · 0.95
TestMakePGBackrestLogDirFunction · 0.45
TestServerConfigFunction · 0.45
TestServerConfigIPv6Function · 0.45
StringMethod · 0.45
RestoreCommandFunction · 0.45
StanzaCreateOrUpgradeMethod · 0.45

Calls

no outgoing calls

Tested by 4

TestMultiSetFunction · 0.76
TestMakePGBackrestLogDirFunction · 0.36
TestServerConfigFunction · 0.36
TestServerConfigIPv6Function · 0.36