✨ Add 'body_FormData' generator to template func maps

This commit is contained in:
aykhans committed 2025-06-01 23:22:55 +04:00
1 parent a8cd253c63
commit 9152eefdc5
4 files changed
+476 -359

No files matched your search

+7 -1
View File
@@ -204,7 +204,13 @@ func (config *Config) Validate() []error {
}
}
funcMap := utils.NewFuncMap(rand.New(rand.NewSource(time.Now().UnixNano())))
funcMap := *utils.NewFuncMapGenerator(
rand.New(
rand.NewSource(
time.Now().UnixNano(),
),
),
).GetFuncMap()
for _, header := range config.Headers {
t, err := template.New("default").Funcs(funcMap).Parse(header.Key)