MCPcopy Index your code
hub / github.com/aws/aws-lambda-go / WithSetIndent

Function WithSetIndent

lambda/handler.go:63–68  ·  view source on GitHub ↗

WithSetIndent sets the SetIndent argument on the underling json encoder

(prefix, indent string)

Source from the content-addressed store, hash-verified

61
62// WithSetIndent sets the SetIndent argument on the underling json encoder
63func WithSetIndent(prefix, indent string) Option {
64 return Option(func(h *handlerOptions) {
65 h.jsonResponseIndentPrefix = prefix
66 h.jsonResponseIndentValue = indent
67 })
68}
69
70// WithUseNumber sets the UseNumber option on the underlying json decoder
71func WithUseNumber(useNumber bool) Option {

Callers 2

ExampleWithSetIndentFunction · 0.92
TestInvokesFunction · 0.85

Calls 1

OptionFuncType · 0.85

Tested by 2

ExampleWithSetIndentFunction · 0.74
TestInvokesFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…