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

Function Obj

pkg/lib/strings/stringify.go:350–352  ·  view source on GitHub ↗
(val interface{})

Source from the content-addressed store, hash-verified

348}
349
350func Obj(val interface{}) string {
351 return strIndent(val, " ", "", "\n", `"`)
352}
353
354// Same as Obj(), but trim leading and trailing quotes if it's just a string
355func ObjStripped(val interface{}) string {

Callers 2

ObjStrippedFunction · 0.85
TestObjFunction · 0.85

Calls 1

strIndentFunction · 0.85

Tested by 1

TestObjFunction · 0.68