mirror of
https://github.com/aykhans/dodo.git
synced 2025-07-02 00:16:20 +00:00
✨ Add 'body_FormData' generator to template func maps
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user