feat: add tplprev wasm

This commit is contained in:
nils måsén 2023-10-02 11:37:30 +02:00
parent 9b28fbc24d
commit 16883d21c0
11 changed files with 1348 additions and 19 deletions

View file

@ -59,13 +59,3 @@ func marshalReports(reports []t.ContainerReport) []jsonMap {
}
var _ json.Marshaler = &Data{}
func toJSON(v interface{}) string {
var bytes []byte
var err error
if bytes, err = json.MarshalIndent(v, "", " "); err != nil {
LocalLog.Errorf("failed to marshal JSON in notification template: %v", err)
return ""
}
return string(bytes)
}