MCPcopy
hub / github.com/aws/aws-lambda-go / WithUseNumber

Function WithUseNumber

lambda/handler.go:71–75  ·  view source on GitHub ↗

WithUseNumber sets the UseNumber option on the underlying json decoder

(useNumber bool)

Source from the content-addressed store, hash-verified

69
70// WithUseNumber sets the UseNumber option on the underlying json decoder
71func WithUseNumber(useNumber bool) Option {
72 return Option(func(h *handlerOptions) {
73 h.jsonRequestUseNumber = useNumber
74 })
75}
76
77// WithDisallowUnknownFields sets the DisallowUnknownFields option on the underlying json decoder
78func WithDisallowUnknownFields(disallowUnknownFields bool) Option {

Callers 2

ExampleWithUseNumberFunction · 0.92
TestInvokesFunction · 0.85

Calls 1

OptionFuncType · 0.85

Tested by 2

ExampleWithUseNumberFunction · 0.74
TestInvokesFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…