mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-29 07:30:23 +08:00
make lint happy
This commit is contained in:
@@ -38,7 +38,7 @@ type WordprocessingCanvas struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// 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 {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
@@ -105,7 +105,7 @@ type WPCBackground struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// 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 {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
@@ -138,7 +138,7 @@ type WPCWhole struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// 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 {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ type AlternateContent struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// UnmarshalXML ...
|
||||||
func (a *AlternateContent) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
func (a *AlternateContent) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
|
||||||
for {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
@@ -62,7 +62,7 @@ type MCChoice struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// 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 {
|
for _, attr := range start.Attr {
|
||||||
switch attr.Name.Local {
|
switch attr.Name.Local {
|
||||||
case "Requires":
|
case "Requires":
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ type Body struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// UnmarshalXML ...
|
||||||
func (b *Body) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
func (b *Body) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
|
||||||
for {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
@@ -167,7 +167,7 @@ type Document struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// UnmarshalXML ...
|
||||||
func (doc *Document) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
func (doc *Document) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
|
||||||
for {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ type Drawing struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// UnmarshalXML ...
|
||||||
func (r *Drawing) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
func (r *Drawing) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
|
||||||
for {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
@@ -458,7 +458,7 @@ type WPCNvGraphicFramePr struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// UnmarshalXML ...
|
||||||
func (w *WPCNvGraphicFramePr) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
func (w *WPCNvGraphicFramePr) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
|
||||||
for {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
@@ -636,7 +636,7 @@ type Picture struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// UnmarshalXML ...
|
||||||
func (p *Picture) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
func (p *Picture) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
|
||||||
for {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
@@ -689,7 +689,7 @@ type PICNonVisualPicProperties struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// UnmarshalXML ...
|
||||||
func (p *PICNonVisualPicProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
func (p *PICNonVisualPicProperties) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
|
||||||
for {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
@@ -735,7 +735,7 @@ type PicCNvPicPr struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// 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
|
// Loop through XML tokens
|
||||||
for {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
@@ -786,7 +786,7 @@ type PICBlipFill struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// UnmarshalXML ...
|
||||||
func (p *PICBlipFill) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
func (p *PICBlipFill) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
|
||||||
for {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
@@ -887,7 +887,7 @@ type AStretch struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// UnmarshalXML ...
|
||||||
func (s *AStretch) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
func (s *AStretch) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
|
||||||
for {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
@@ -936,7 +936,7 @@ type PICSpPr struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// UnmarshalXML ...
|
||||||
func (p *PICSpPr) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
func (p *PICSpPr) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
|
||||||
for {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
@@ -1154,7 +1154,7 @@ type AAvLst struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// 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
|
var content []byte
|
||||||
|
|
||||||
if content, err = xml.Marshal(start); err != nil {
|
if content, err = xml.Marshal(start); err != nil {
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ type Hyperlink struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// UnmarshalXML ...
|
||||||
func (r *Hyperlink) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
func (r *Hyperlink) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
|
||||||
for {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ type ParagraphProperties struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// UnmarshalXML ...
|
||||||
func (p *ParagraphProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
func (p *ParagraphProperties) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
|
||||||
for {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
@@ -227,7 +227,7 @@ func (p *Paragraph) String() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// 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 {
|
/*for _, attr := range start.Attr {
|
||||||
switch attr.Name.Local {
|
switch attr.Name.Local {
|
||||||
case "rsidR":
|
case "rsidR":
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ type RunProperties struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// UnmarshalXML ...
|
||||||
func (r *RunProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
func (r *RunProperties) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
|
||||||
for {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ type WordprocessingShape struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// UnmarshalXML ...
|
||||||
func (w *WordprocessingShape) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
func (w *WordprocessingShape) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
|
||||||
for {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
@@ -109,7 +109,7 @@ type WPSCNvCnPr struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// UnmarshalXML ...
|
||||||
func (w *WPSCNvCnPr) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
func (w *WPSCNvCnPr) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
|
||||||
for {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
@@ -428,7 +428,7 @@ type ASolidFill struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// UnmarshalXML ...
|
||||||
func (s *ASolidFill) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
func (s *ASolidFill) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
|
||||||
for {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
@@ -545,7 +545,7 @@ type WPSTextBox struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// UnmarshalXML ...
|
||||||
func (b *WPSTextBox) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
func (b *WPSTextBox) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
|
||||||
for {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
@@ -586,7 +586,7 @@ type WTextBoxContent struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// UnmarshalXML ...
|
||||||
func (c *WTextBoxContent) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
func (c *WTextBoxContent) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
|
||||||
for {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ func (t *Table) String() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML implements the xml.Unmarshaler interface.
|
// 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 {
|
for {
|
||||||
token, err := d.Token()
|
token, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
@@ -117,7 +117,7 @@ type WTableProperties struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML implements the xml.Unmarshaler interface.
|
// 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 {
|
for {
|
||||||
token, err := d.Token()
|
token, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
@@ -341,7 +341,7 @@ type WTableGrid struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// UnmarshalXML ...
|
||||||
func (t *WTableGrid) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
func (t *WTableGrid) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
|
||||||
for {
|
for {
|
||||||
tok, err := d.Token()
|
tok, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
@@ -412,7 +412,7 @@ type WTableRow struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// 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 {
|
/*for _, attr := range start.Attr {
|
||||||
switch attr.Name.Local {
|
switch attr.Name.Local {
|
||||||
case "rsidR":
|
case "rsidR":
|
||||||
@@ -471,7 +471,7 @@ type WTableRowProperties struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// UnmarshalXML ...
|
||||||
func (t *WTableRowProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
func (t *WTableRowProperties) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
|
||||||
for {
|
for {
|
||||||
tok, err := d.Token()
|
tok, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
@@ -542,7 +542,7 @@ type WTableCell struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// UnmarshalXML ...
|
||||||
func (c *WTableCell) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
func (c *WTableCell) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
|
||||||
for {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
@@ -593,7 +593,7 @@ type WTableCellProperties struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// UnmarshalXML ...
|
||||||
func (r *WTableCellProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
func (r *WTableCellProperties) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
|
||||||
for {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
@@ -705,7 +705,7 @@ type WTableBorders struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// UnmarshalXML ...
|
||||||
func (w *WTableBorders) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
func (w *WTableBorders) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
|
||||||
for {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ type Tabs struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// UnmarshalXML ...
|
// UnmarshalXML ...
|
||||||
func (tb *Tabs) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
func (tb *Tabs) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
|
||||||
for {
|
for {
|
||||||
t, err := d.Token()
|
t, err := d.Token()
|
||||||
if err == io.EOF {
|
if err == io.EOF {
|
||||||
|
|||||||
Reference in New Issue
Block a user