convert stdout to string before printing

This commit is contained in:
Akbar Rahman 2021-08-04 22:18:53 +01:00
parent a3ded5a052
commit 5ab36c57ef

View File

@ -87,7 +87,7 @@ func webhookHandler(w http.ResponseWriter, r *http.Request) {
}
}
stdout, err := service.Script.Execute(payload)
fmt.Println(stdout)
fmt.Println(string(stdout))
if err != nil {
fmt.Println(err.Error())
}