tierpod / dmarc-report-converter

Convert dmarc reports from xml to human-readable formats
MIT License
223 stars 25 forks source link

Now option not working #25

Closed jwnetwerk closed 2 years ago

jwnetwerk commented 2 years ago

I tried the line specified above. This gives the error:

panic: template: filename:1: function "now" not defined

goroutine 1 [running]: html/template.Must(...) /opt/hostedtoolcache/go/1.13.15/x64/src/html/template/template.go:372 main.loadConfig(0x7ffd72018763, 0xd, 0x2, 0x2, 0x0) /home/runner/work/dmarc-report-converter/dmarc-report-converter/cmd/dmarc-report-converter/config.go:103 +0x5fc main.main() /home/runner/work/dmarc-report-converter/dmarc-report-converter/cmd/dmarc-report-converter/main.go:30 +0x1a6[ERROR] loadConfig: yaml: line 20: did not find expected key

Originally posted by @jwnetwerk in https://github.com/tierpod/dmarc-report-converter/issues/23#issuecomment-1032675966

tierpod commented 2 years ago

@jwnetwerk this function was only available in the master branch.

I released v0.6.1 with this "now" function, please update your installation and it should work fine.

jwnetwerk commented 2 years ago

Yes, It is working now. Thanks!