MCPcopy
hub / github.com/gofiber/fiber / MustSetContextTemplate

Function MustSetContextTemplate

log/context.go:127–131  ·  view source on GitHub ↗

MustSetContextTemplate configures contextual fields and panics if the format cannot be parsed.

(config ContextConfig)

Source from the content-addressed store, hash-verified

125
126// MustSetContextTemplate configures contextual fields and panics if the format cannot be parsed.
127func MustSetContextTemplate(config ContextConfig) {
128 if err := SetContextTemplate(config); err != nil {
129 panic(err)
130 }
131}
132
133// RegisterContextTag registers a contextual tag that can be used by SetContextTemplate.
134// Re-registering a tag replaces the existing tag function. Registration is package-global;

Calls 1

SetContextTemplateFunction · 0.85