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