diff --git a/structcanvas.go b/structcanvas.go index 7246847..fe08bb9 100644 --- a/structcanvas.go +++ b/structcanvas.go @@ -38,7 +38,7 @@ type WordprocessingCanvas struct { } // UnmarshalXML ... -func (c *WordprocessingCanvas) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error) { +func (c *WordprocessingCanvas) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) (err error) { for { t, err := d.Token() if err == io.EOF { @@ -105,7 +105,7 @@ type WPCBackground struct { } // UnmarshalXML ... -func (b *WPCBackground) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error) { +func (b *WPCBackground) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) (err error) { for { t, err := d.Token() if err == io.EOF { @@ -138,7 +138,7 @@ type WPCWhole struct { } // UnmarshalXML ... -func (w *WPCWhole) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error) { +func (w *WPCWhole) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) (err error) { for { t, err := d.Token() if err == io.EOF { diff --git a/structcompatibility.go b/structcompatibility.go index 932fbfe..285d88f 100644 --- a/structcompatibility.go +++ b/structcompatibility.go @@ -19,7 +19,7 @@ type AlternateContent struct { } // UnmarshalXML ... -func (a *AlternateContent) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (a *AlternateContent) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { t, err := d.Token() if err == io.EOF { @@ -62,7 +62,7 @@ type MCChoice struct { } // UnmarshalXML ... -func (c *MCChoice) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (c *MCChoice) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for _, attr := range start.Attr { switch attr.Name.Local { case "Requires": diff --git a/structdoc.go b/structdoc.go index 15f46bd..5a27f0b 100644 --- a/structdoc.go +++ b/structdoc.go @@ -62,7 +62,7 @@ type Body struct { } // UnmarshalXML ... -func (b *Body) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (b *Body) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { t, err := d.Token() if err == io.EOF { @@ -167,7 +167,7 @@ type Document struct { } // UnmarshalXML ... -func (doc *Document) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (doc *Document) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { t, err := d.Token() if err == io.EOF { diff --git a/structdrawing.go b/structdrawing.go index 3f37c13..76d2d7b 100644 --- a/structdrawing.go +++ b/structdrawing.go @@ -52,7 +52,7 @@ type Drawing struct { } // UnmarshalXML ... -func (r *Drawing) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (r *Drawing) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { t, err := d.Token() if err == io.EOF { @@ -458,7 +458,7 @@ type WPCNvGraphicFramePr struct { } // UnmarshalXML ... -func (w *WPCNvGraphicFramePr) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (w *WPCNvGraphicFramePr) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { t, err := d.Token() if err == io.EOF { @@ -636,7 +636,7 @@ type Picture struct { } // UnmarshalXML ... -func (p *Picture) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (p *Picture) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { t, err := d.Token() if err == io.EOF { @@ -689,7 +689,7 @@ type PICNonVisualPicProperties struct { } // UnmarshalXML ... -func (p *PICNonVisualPicProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (p *PICNonVisualPicProperties) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { t, err := d.Token() if err == io.EOF { @@ -735,7 +735,7 @@ type PicCNvPicPr struct { } // UnmarshalXML ... -func (p *PicCNvPicPr) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (p *PicCNvPicPr) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { // Loop through XML tokens for { t, err := d.Token() @@ -786,7 +786,7 @@ type PICBlipFill struct { } // UnmarshalXML ... -func (p *PICBlipFill) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (p *PICBlipFill) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { t, err := d.Token() if err == io.EOF { @@ -887,7 +887,7 @@ type AStretch struct { } // UnmarshalXML ... -func (s *AStretch) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (s *AStretch) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { t, err := d.Token() if err == io.EOF { @@ -936,7 +936,7 @@ type PICSpPr struct { } // UnmarshalXML ... -func (p *PICSpPr) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (p *PICSpPr) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { t, err := d.Token() if err == io.EOF { @@ -1154,7 +1154,7 @@ type AAvLst struct { } // UnmarshalXML ... -func (a *AAvLst) UnmarshalXML(d *xml.Decoder, start xml.StartElement) (err error) { +func (a *AAvLst) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) (err error) { var content []byte if content, err = xml.Marshal(start); err != nil { diff --git a/structlink.go b/structlink.go index 05eae10..3132b7d 100644 --- a/structlink.go +++ b/structlink.go @@ -34,7 +34,7 @@ type Hyperlink struct { } // UnmarshalXML ... -func (r *Hyperlink) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (r *Hyperlink) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { t, err := d.Token() if err == io.EOF { diff --git a/structpara.go b/structpara.go index 70c0148..28e9cfc 100644 --- a/structpara.go +++ b/structpara.go @@ -48,7 +48,7 @@ type ParagraphProperties struct { } // UnmarshalXML ... -func (p *ParagraphProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (p *ParagraphProperties) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { t, err := d.Token() if err == io.EOF { @@ -227,7 +227,7 @@ func (p *Paragraph) String() string { } // UnmarshalXML ... -func (p *Paragraph) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (p *Paragraph) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { /*for _, attr := range start.Attr { switch attr.Name.Local { case "rsidR": diff --git a/structrun.go b/structrun.go index 2973243..8013613 100644 --- a/structrun.go +++ b/structrun.go @@ -215,7 +215,7 @@ type RunProperties struct { } // UnmarshalXML ... -func (r *RunProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (r *RunProperties) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { t, err := d.Token() if err == io.EOF { diff --git a/structshape.go b/structshape.go index 3c3b229..7793a72 100644 --- a/structshape.go +++ b/structshape.go @@ -41,7 +41,7 @@ type WordprocessingShape struct { } // UnmarshalXML ... -func (w *WordprocessingShape) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (w *WordprocessingShape) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { t, err := d.Token() if err == io.EOF { @@ -109,7 +109,7 @@ type WPSCNvCnPr struct { } // UnmarshalXML ... -func (w *WPSCNvCnPr) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (w *WPSCNvCnPr) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { t, err := d.Token() if err == io.EOF { @@ -428,7 +428,7 @@ type ASolidFill struct { } // UnmarshalXML ... -func (s *ASolidFill) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (s *ASolidFill) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { t, err := d.Token() if err == io.EOF { @@ -545,7 +545,7 @@ type WPSTextBox struct { } // UnmarshalXML ... -func (b *WPSTextBox) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (b *WPSTextBox) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { t, err := d.Token() if err == io.EOF { @@ -586,7 +586,7 @@ type WTextBoxContent struct { } // UnmarshalXML ... -func (c *WTextBoxContent) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (c *WTextBoxContent) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { t, err := d.Token() if err == io.EOF { diff --git a/structtable.go b/structtable.go index 1c03594..d544ddd 100644 --- a/structtable.go +++ b/structtable.go @@ -62,7 +62,7 @@ func (t *Table) String() string { } // UnmarshalXML implements the xml.Unmarshaler interface. -func (t *Table) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (t *Table) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { token, err := d.Token() if err == io.EOF { @@ -117,7 +117,7 @@ type WTableProperties struct { } // UnmarshalXML implements the xml.Unmarshaler interface. -func (t *WTableProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (t *WTableProperties) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { token, err := d.Token() if err == io.EOF { @@ -341,7 +341,7 @@ type WTableGrid struct { } // UnmarshalXML ... -func (t *WTableGrid) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (t *WTableGrid) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { tok, err := d.Token() if err == io.EOF { @@ -412,7 +412,7 @@ type WTableRow struct { } // UnmarshalXML ... -func (w *WTableRow) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (w *WTableRow) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { /*for _, attr := range start.Attr { switch attr.Name.Local { case "rsidR": @@ -471,7 +471,7 @@ type WTableRowProperties struct { } // UnmarshalXML ... -func (t *WTableRowProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (t *WTableRowProperties) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { tok, err := d.Token() if err == io.EOF { @@ -542,7 +542,7 @@ type WTableCell struct { } // UnmarshalXML ... -func (c *WTableCell) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (c *WTableCell) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { t, err := d.Token() if err == io.EOF { @@ -593,7 +593,7 @@ type WTableCellProperties struct { } // UnmarshalXML ... -func (r *WTableCellProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (r *WTableCellProperties) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { t, err := d.Token() if err == io.EOF { @@ -705,7 +705,7 @@ type WTableBorders struct { } // UnmarshalXML ... -func (w *WTableBorders) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (w *WTableBorders) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { t, err := d.Token() if err == io.EOF { diff --git a/structtext.go b/structtext.go index 7a598a0..1039af4 100644 --- a/structtext.go +++ b/structtext.go @@ -35,7 +35,7 @@ type Tabs struct { } // UnmarshalXML ... -func (tb *Tabs) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { +func (tb *Tabs) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error { for { t, err := d.Token() if err == io.EOF {