From 5c30f9c21788e4e390e8e40790012895de83e987 Mon Sep 17 00:00:00 2001 From: Pavel Petrukhin Date: Thu, 18 Jun 2020 11:42:00 +0300 Subject: [PATCH] fix(xlsxBoolProp): xml tag option: mistyped 'attr'. Docs: https://golang.org/pkg/encoding/xml/#Marshal --- xmlSharedStrings.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmlSharedStrings.go b/xmlSharedStrings.go index 9a614da2..d86fbb93 100644 --- a/xmlSharedStrings.go +++ b/xmlSharedStrings.go @@ -59,7 +59,7 @@ type xlsxRunProperties struct { // On the serialization, the struct which has "true" will be serialized an empty XML tag without "val" attributes, // and the struct which has "false" will not be serialized. type xlsxBoolProp struct { - Val bool `xml:"val,addr"` + Val bool `xml:"val,attr"` } // MarshalXML implements xml.Marshaler interface for xlsxBoolProp