Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Replace ¶
Replace replaces template variables in a string with values from context Supported variables:
- {{worker_id}}: Current worker ID (0-based)
- {{random_int}}: Random integer
- {{timestamp}}: Current Unix timestamp
func ReplaceInInterface ¶
ReplaceInInterface recursively replaces template variables in interface{} values Supports strings, maps, and slices
Types ¶
type ContextKey ¶
type ContextKey string
ContextKey is a custom type for context keys to avoid collisions
const ( // WorkerIDKey is the context key for worker ID WorkerIDKey ContextKey = "worker_id" )
Click to show internal directories.
Click to hide internal directories.