1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-04 23:30:25 +08:00

make lint happy

This commit is contained in:
源文雨
2023-03-30 22:17:38 +08:00
parent f241cc1484
commit 34f53a967c
10 changed files with 34 additions and 34 deletions

View File

@@ -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 {

View File

@@ -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":

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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":

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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 {