Skip to content

Leaf nodes could be strings. #4

@miku

Description

@miku

Here we have:

KASS struct {
    Text string `xml:",chardata"`
} `xml:"KASS"`

which could be expressed as well as:

KASS string `xml:"KASS"`

Shorter, but would break uniformity (.Text for chardata everywhere).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions