MCPcopy Create free account
hub / github.com/convox/rack / String

Method String

pkg/structs/environment.go:30–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30func (e Environment) String() string {
31 lines := []string{}
32
33 for k, v := range e {
34 lines = append(lines, fmt.Sprintf("%s=%s", k, v))
35 }
36
37 sort.Strings(lines)
38
39 return strings.Join(lines, "\n")
40}
41
42// SortedNames returns a slice of environment variables sorted by name.
43// func (e Environment) SortedNames() []string {

Callers 6

EnvEditFunction · 0.95
EnvSetFunction · 0.95
ReleaseGetMethod · 0.95
TestStart2Function · 0.45
TestStart2OptionsFunction · 0.45
handleAddsMethod · 0.45

Calls

no outgoing calls

Tested by 2

TestStart2Function · 0.36
TestStart2OptionsFunction · 0.36