Greetings everyone,
I'm writing a parser based on Go's `encoding/xml`, I tried to use the
following pattern but it was deemed invalid:
```
switch tok := p.tok.(type) {
case xml.StartElement, xml.EndElement:
tok.Name.Local == "types"
}
```
To me, it'd make sense if it was allowed since both types are structs and
both of them share the field `Name` with the subsequent field `Local`.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/a9bea1d0-51f9-4bfe-9fa6-25494831590fn%40googlegroups.com.