diff --git a/pages/common/zek.md b/pages/common/zek.md new file mode 100644 index 000000000..0a9c93f6c --- /dev/null +++ b/pages/common/zek.md @@ -0,0 +1,16 @@ +# zek + +> Generate a Go struct from XML. +> More information: . + +- 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: + +`curl -s {{https://url/to/xml}} | zek -o {{path/to/output.go}}` + +- 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}}`