MCPcopy Index your code
hub / github.com/cortexlabs/cortex / strIndentValue

Function strIndentValue

pkg/lib/strings/stringify.go:336–341  ·  view source on GitHub ↗
(val reflect.Value, indent string, currentIndent string, newlineChar string, quoteStr string)

Source from the content-addressed store, hash-verified

334}
335
336func strIndentValue(val reflect.Value, indent string, currentIndent string, newlineChar string, quoteStr string) string {
337 if val.IsValid() && val.CanInterface() {
338 return strIndent(val.Interface(), indent, currentIndent, newlineChar, quoteStr)
339 }
340 return "<hidden>"
341}
342
343func YesNo(val bool) string {
344 if val {

Callers 2

strIndentFunction · 0.85
UserStrValueFunction · 0.85

Calls 1

strIndentFunction · 0.85

Tested by

no test coverage detected