-
| Given: type XMLFile struct {
	XMLName      xml.Name `xml:",any"`
	ID           string   `xml:"id,attr"`
	Path         string   `xml:"path"`
	OriginalPath string   `xml:"originalPath"`
	Extension    string   `xml:"extension"`
	MimeType     string   `xml:"mimeType"`
	Data         []byte   `xml:"data,omitempty"`
}The linter complains as  | 
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
| You should open an issue on the staticcheck repository: https://github.com/dominikh/go-tools But I cannot see something related specifically to  
 | 
Beta Was this translation helpful? Give feedback.
You should open an issue on the staticcheck repository: https://github.com/dominikh/go-tools
But I cannot see something related specifically to
xml.Nameandanyinside theencoding/xmldocumentation.I can only see references to attributes and sub-elements. A tag name is neither an attribute nor a sub-element.