MCPcopy Create free account
hub / github.com/aws-samples/aws-lambda-extensions / PrettyPrint

Function PrettyPrint

cache-extension-demo/plugins/utils.go:49–55  ·  view source on GitHub ↗

Method for pretty printing objects in logs

(v interface{})

Source from the content-addressed store, hash-verified

47
48// Method for pretty printing objects in logs
49func PrettyPrint(v interface{}) string {
50 data, err := json.MarshalIndent(v, "", "\t")
51 if err != nil {
52 return ""
53 }
54 return string(data)
55}

Callers 1

GetDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected