The `parent>child>plant` field tag tells the encoder to nest all `plant`s under ` ...`
| 57 | // The `parent>child>plant` field tag tells the encoder |
| 58 | // to nest all `plant`s under `<parent><child>...` |
| 59 | type Nesting struct { |
| 60 | XMLName xml.Name `xml:"nesting"` |
| 61 | Plants []*Plant `xml:"parent>child>plant"` |
| 62 | } |
| 63 | |
| 64 | nesting := &Nesting{} |
| 65 | nesting.Plants = []*Plant{coffee, tomato} |
nothing calls this directly
no outgoing calls
no test coverage detected