MCPcopy
hub / github.com/cortexlabs/cortex / ObjStripped

Function ObjStripped

pkg/lib/strings/stringify.go:355–357  ·  view source on GitHub ↗

Same as Obj(), but trim leading and trailing quotes if it's just a string

(val interface{})

Source from the content-addressed store, hash-verified

353
354// Same as Obj(), but trim leading and trailing quotes if it's just a string
355func ObjStripped(val interface{}) string {
356 return TrimPrefixAndSuffix(Obj(val), `"`)
357}
358
359func ObjFlat(val interface{}) string {
360 return strIndent(val, "", "", "", `"`)

Callers

nothing calls this directly

Calls 2

TrimPrefixAndSuffixFunction · 0.85
ObjFunction · 0.85

Tested by

no test coverage detected