WithContextValue adds a value to the handler context. If a base context was set using WithContext, that base is used as the parent.
(key interface{}, value interface{})
| 47 | // WithContextValue adds a value to the handler context. |
| 48 | // If a base context was set using WithContext, that base is used as the parent. |
| 49 | func WithContextValue(key interface{}, value interface{}) Option { |
| 50 | return Option(func(h *handlerOptions) { |
| 51 | h.contextValues[key] = value |
| 52 | }) |
| 53 | } |
| 54 | |
| 55 | // WithSetEscapeHTML sets the SetEscapeHTML argument on the underlying json encoder |
| 56 | func WithSetEscapeHTML(escapeHTML bool) Option { |
searching dependent graphs…