MCPcopy Index your code
hub / github.com/Masterminds/sprig / quote

Function quote

strings.go:83–91  ·  view source on GitHub ↗
(str ...interface{})

Source from the content-addressed store, hash-verified

81}
82
83func quote(str ...interface{}) string {
84 out := make([]string, 0, len(str))
85 for _, s := range str {
86 if s != nil {
87 out = append(out, fmt.Sprintf("%q", strval(s)))
88 }
89 }
90 return strings.Join(out, " ")
91}
92
93func squote(str ...interface{}) string {
94 out := make([]string, 0, len(str))

Callers

nothing calls this directly

Calls 1

strvalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…