Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
colmsnowplow committed Jul 1, 2024
1 parent 80265c4 commit b9f668a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/target/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ func loadRequestTemplate(templateFile string) (*template.Template, error) {
func parseRequestTemplate(templateContent string) (*template.Template, error) {
customTemplateFunctions := template.FuncMap{
// If you use this in your template on struct-like fields, you get rendered nice JSON `{"field":"value"}` instead of stringified map `map[field:value]`
// TODO: This works for now but we should check if there is more efficient solution.
"prettyPrint": func(v interface{}) string {
a, _ := json.Marshal(v)
return string(a)
Expand Down

0 comments on commit b9f668a

Please sign in to comment.