2025-03-14 21:59:59 -06:00
|
|
|
# zek
|
|
|
|
|
|
|
|
|
|
> Generate a Go struct from XML.
|
2025-12-16 10:20:31 -07:00
|
|
|
> More information: <https://github.com/miku/zek#usage>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Generate a Go struct from a given XML from `stdin` and display output on `stdout`:
|
|
|
|
|
|
|
|
|
|
`cat {{path/to/input.xml}} | zek`
|
|
|
|
|
|
|
|
|
|
- Generate a Go struct from a given XML from `stdin` and send output to a file:
|
|
|
|
|
|
2025-12-16 10:20:31 -07:00
|
|
|
`curl {{[-s|--silent]}} {{https://url/to/xml}} | zek -o {{path/to/output.go}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Generate an example Go program from a given XML from `stdin` and send output to a file:
|
|
|
|
|
|
|
|
|
|
`cat {{path/to/input.xml}} | zek -p -o {{path/to/output.go}}`
|