mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-23 20:16:38 +08:00
chore: make lint happy
This commit is contained in:
@@ -97,9 +97,9 @@ type BarterRabbet struct {
|
|||||||
// UnmarshalXML ...
|
// UnmarshalXML ...
|
||||||
func (f *BarterRabbet) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
func (f *BarterRabbet) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||||
for _, attr := range start.Attr {
|
for _, attr := range start.Attr {
|
||||||
switch attr.Name.Local {
|
if attr.Name.Local == "type" {
|
||||||
case "type":
|
|
||||||
f.Type = attr.Value
|
f.Type = attr.Value
|
||||||
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Consume the end element
|
// Consume the end element
|
||||||
|
|||||||
Reference in New Issue
Block a user