zek icon indicating copy to clipboard operation
zek copied to clipboard

Generate a Go struct from XML.

Results 10 zek issues
Sort by recently updated
recently updated
newest added

Hello! Here's my suggestion for a flag allowing non-nested structs, discussed in #14 . The diff is a bit noisy, but essentially it takes in a slice of names in...

Right now zek generates nested structs, with one struct being nested in another. The downside of this is that it is (apparently) not possible to attach methods to the nested...

This would be really nice. If you point me in the right direction, I might be willing to implement.

``` zek < config.xml 2018/12/12 19:32:58 xml: unsupported version "1.1"; only version 1.0 is supported ```

> dpkg-deb: Fehler: Archiv »zek_0.1.5_amd64.deb« enthält vorzeitiges Element »control.tar.xz« vor »control.tar.gz«, Abbruch dpkg: Fehler beim Bearbeiten des Archivs zek_0.1.5_amd64.deb (--install): Unterprozess dpkg-deb --control gab den Fehlerwert 2 zurück Fehler traten...

Like min, max, mean, median.

See: https://github.com/miku/zek/commit/f160a903cd3b6aba2e6ebd0aeee383e7cbc83c13.

[Here](https://github.com/miku/zek/blob/83570a9892d9b053c08259a27448138e7a4d87ca/fixtures/r.go#L1489-L1491) 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...

Currently, only a few examples are [collected](https://github.com/miku/zek/blob/83570a9892d9b053c08259a27448138e7a4d87ca/node.go#L75-L78). It would be interesting to count the number of occurrences of nodes and also occurrences of values per node. Length stats.

like: ```go type Code struct { Text string `xml:",innerxml"` } ```