MCPcopy Create free account
hub / github.com/aws-cloudformation/rain / String

Method String

cft/diff/diff.go:102–110  ·  view source on GitHub ↗

String returns a string representation of the slice

()

Source from the content-addressed store, hash-verified

100
101// String returns a string representation of the slice
102func (s slice) String() string {
103 parts := make([]string, len(s))
104
105 for i, v := range s {
106 parts[i] = v.String()
107 }
108
109 return fmt.Sprintf("%s[%s]", s.Mode(), strings.Join(parts, " "))
110}
111
112// dmap represents a difference between two maps
113type dmap map[string]Diff

Callers

nothing calls this directly

Calls 2

ModeMethod · 0.95
StringMethod · 0.65

Tested by

no test coverage detected