How to create a handler
Introduction
Step 1: Understand the Handler Interface
Step 2: Create Your Custom Handler Struct
type MyCustomHandler struct {
logger *slog.Logger
registries []sprout.Registry
funcsMap sprout.FunctionMap
funcsAlias sprout.FunctionAliasMap
}Step 3: Implement the Handler Interface
Step 4: Initialize and Customize Your Handler
Step 5: Use Your Custom Handler
Conclusion
Last updated