WithSetIndent sets the SetIndent argument on the underling json encoder
(prefix, indent string)
| 61 | |
| 62 | // WithSetIndent sets the SetIndent argument on the underling json encoder |
| 63 | func 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 |
| 71 | func WithUseNumber(useNumber bool) Option { |
searching dependent graphs…