1
0
mirror of https://github.com/securego/gosec.git synced 2025-01-05 22:53:29 +02:00

Added xml header format.

This commit is contained in:
Wong Her Laang 2018-01-27 11:49:58 +08:00
parent b8cdc32174
commit 7539b3735f

View File

@ -180,6 +180,7 @@ func reportXML(w io.Writer, data *reportInfo) error {
panic(err)
}
raw = append([]byte("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"), raw...)
_, err = w.Write(raw)
if err != nil {
panic(err)